image box

how to load an image in records to an imagebox on the form. I have given as imgphoto.picture=adoQset.Fields("images") where images is the column name
rmvprasadAsked:
Who is Participating?
 
DhaestConnect With a Mentor Commented:
first, consider that loading images (and files in general) into a database is probably bad regarding the performance. If at all, you should store them in a separate database...

Besides that, you need to read about the .AppendChunk and .GetChunk to write/read to IMAGE (and TEXT) fields in SQL Server.
Another way to do this is store the file location in the database and simply place image files on the hard drive.  As far as removing the file just remove the record holding the location and then use the kill statement to delete the file off the hard drive.
0
 
DhaestCommented:
0
 
DhaestCommented:
My recommandation: answered by dhaest
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.