images from access file

kagitas

New member
Joined
Jul 12, 2003
Messages
2
Location
Hyderabad
hi...
i have opened a connection to nwind sample database and getting data from categories table. problem is how to get image from categories table and place in picturebox in my form.
plz solve this..
thanx in advance
 
Usually the image will be stored with arttribute property img, it stores the image in form of byte files.

In your code,

Create a FileStream and in the Reader,use the GetBytes method and store in a file and open the file uisng the FileMode property and assign the image box, imageURL to the file you just read into bytes.

you can convert the file into a bmp image of any format(even the image is in jpg format)

Dim img as New Bitmap(fd.FileName)

Hope this would help.
 
Back
Top