kagitas Posted July 12, 2003 Posted July 12, 2003 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 Quote
rufus Posted July 12, 2003 Posted July 12, 2003 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. Quote Rufus
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.