• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 517
  • Last Modified:

VB.Net Display Images From MSSQL

I have a load of images stored in a mssql database as binary, I can read them out and store them as a file then tell the picturebox to load the file. Is there a way to load directly into a picturebox (i.e. creating an image from the binary stream).

Would like solution from having read the data into a variable -> setting pictureBox.abc = def, or reference to a page that shows how it can be done! :)

Thanks
0
x4h
Asked:
x4h
2 Solutions
 
zupi5Commented:

just call



picImage.Image =  Image.FromStream(ms);                                    

picImage  is your picturebox control, ms is the stream containing the image
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.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now