Home > Archive > Visual Basic > May 2005 > displaying an image on a vb form from a database
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
displaying an image on a vb form from a database
|
|
| Bruce Baker 2005-05-31, 8:55 am |
| Hi
I have images stored in an SQL database.
I can read them easy enough - how can I display the image in a picture box,
or some other holder ?
Do I have to save the image as a .jpg or similar and then call LoadPicture ?
Thanks
| |
| Jean-claude 2005-05-31, 8:55 am |
|
"Bruce Baker" <bruceb@ardex.com.au> a écrit dans le message de news:
%23k8nVEbZFHA.3488@tk2msftngp13.phx.gbl...
> Hi
>
> I have images stored in an SQL database.
>
> I can read them easy enough - how can I display the image in a picture
> box, or some other holder ?
>
> Do I have to save the image as a .jpg or similar and then call LoadPicture
> ?
>
> Thanks
>
Yes, you have to save it first.
--
Jean-Claude
-------------------------
www.namtuk.com : official website / Controls and components for development.
www.capture-my-screen.com : Make screenshot simplicity
www.winpopup-express.com : Send instant messages to your coworkers
-------------------------
| |
| Mike D Sutton 2005-05-31, 8:55 am |
| > I have images stored in an SQL database.
>
> I can read them easy enough - how can I display the image in a picture box,
> or some other holder ?
>
> Do I have to save the image as a .jpg or similar and then call LoadPicture ?
What format are they stored in? If they're simply storing the raw image file data then you may find the graphicload.zip example
here to be useful:
http://btmtz.mvps.org/_misc/index.htm
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: Http://EDais.mvps.org/
|
|
|
|
|