Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

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

Posted

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.

Rufus

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...