Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to load raw picture into Image Control?

Status
Not open for further replies.

JimHorton

Programmer
Jan 29, 2000
991
US
Hi,
I have a db in which I store jpegs as blobs. I'm fine with the storing of the images to the raw field and writing them to disk if need be. However, I want to be able to spool the raw data into a picture control directly from the database field--ie an Access or VB form with a single Image control or picturebox--on each record I want to load that control with the blob image.

The Image control or object takes a file path for the picture, and I'm assuming it filters/converts it on-the-fly into a .dib format, since the .PictureData size is far, far bigger than the filesize when I load a diskfile (my current, but not preffered method) into the image control.

However, I want to cut out the middleman, as it were, and I need a function or method that will convert/filter the blob data directly to the image control. Is this possible (without a 3rd party control) or would I need a 3rd party control to do such a task?
Thanks,
--Jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top