VB.Net Display Images From MSSQL

Posted on 2005-04-27
Last Modified: 2008-01-09
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 = def, or reference to a page that shows how it can be done! :)

Question by:x4h
    LVL 6

    Assisted Solution


    just call

    picImage.Image =  Image.FromStream(ms);                                    

    picImage  is your picturebox control, ms is the stream containing the image
    LVL 48

    Accepted Solution


    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now