Home All Groups Group Topic Archive Search About

displaying an image on a vb form from a database

Author
31 May 2005 7:25 AM
Bruce Baker
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

Author
31 May 2005 8:21 AM
Jean-claude
"Bruce Baker" <bru***@ardex.com.au> a écrit dans le message de news:
%23k8nVEbZFHA.3***@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
-------------------------
Author
31 May 2005 8:48 AM
Mike D Sutton
> 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: ED***@mvps.org
WWW: Http://EDais.mvps.org/