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!

displaying field contents as image.picture

Status
Not open for further replies.

monkey666

Programmer
Oct 18, 2002
34
EU
I have a table with a binary memo field. Stored to this is a bmp file (not the path - the actual file itself). How do I view the contents of this field as the picture in an image control?

eg image1.picture=mytable.myfield

monkey
 
Monkey,
You'll probably need to extract the data back into a temporary file. e.g.
Code:
=strtofile(mytable.myfield, "mypic.bmp")
image1.picture = "mypic.bmp"
This assumes that you put the data into the memo field using filetostr() and it's not really a General field with an embedded OLE data file.

Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top