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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show image in VB app that is stored in an Access DB 2

Status
Not open for further replies.

dsi

Programmer
Mar 13, 2000
964
US
VB6
I am trying to display a picture in an Image control. The picture is stored in an Access table as an OLE object. I am trying to use recordset.fields(i) to get the object, which may be part of the problem. Any ideas?
 
I couldn't get it to do this either unfortunatly, so would love to know how instead I put the images into a resource file and used a field on my DB to call the image to the image control.
Its a work around I know but unless one of the guru's knows its all I have :(
 

You need to get the data using the GetChunck method and save it to a temporary file, and then retrieve the picture using the VB LoadPicture method.
This is easier than it sounds.

See: thread709-391834 [/b][/i][/u][sub]*******************************************************
General remarks:
If this post contains any suggestions for the use or distribution of code, components or files of any sort, it is still your responsibility to assure that you have the proper license and distribution rights to do so!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top