General information
Category:
Pictures and Image processing
Title:
Saving and Retrieving Images from database
I am trying to save and image in my database. I have been able to do this, but my problem is displaying this image on the form. This is the code
lcFileName = GETPICT("JPG,JPEG",this.Caption)
IF !EMPTY(lcFileName)
thisform.imgPhoto.Picture = lcFileName
REPLACE data.photo_file WITH lcFileName
APPEND GENERAL data.photo FROM (lcFileName) CLASS image
thisform.Refresh()
ENDIF
I have not been able to display from the data.photo General Field on my form. Also have not figured how to save from the General field back to disk.
My problem is I don't want the user to be able to delete the image file and have it not show in the form.
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only