PDA

Click to See Complete Forum and Search --> : Loading binary data to a PictureBox


ManCap
Mar 8th, 2001, 06:56 AM
Hi everyone..

I'm am insterested in finding a method to load my images onto a PictureBox.
I can't use the LoadPicture function, since the images are stored in a database, so I therefore have the binary data in a variable and not in a file.

Neither is the Picture property usefull since it does not take binary data, but just a hDC value (i think).

So the question is, how can I load images onto af PictureBox from binary data in a database?


Hope someone can help me :-)

plenderj
Mar 8th, 2001, 07:34 AM
Well you could write the variable to the drive and then use loadpicture or picture.

- jamie

kedaman
Mar 8th, 2001, 09:30 AM
or you could use CreateDIBitmap with an array of the pixels and attach it to a DC and blit it over