Select Image RRS feed

  • Question

  • How to select image fom database in ASP.Net 2..
    • Moved by Andreas Johansson Monday, August 22, 2011 9:27 AM Unclear question related to ASP.NET (From:.NET Base Class Library)
    Monday, August 22, 2011 3:59 AM

All replies

  • FYI, the correct forums for ASP.net are http://forums.asp.net.

    I'll now leave you with a general answer.  Feel free to explore it further in the correct forum:

    Just do the query that returns the blob field, and then query it using a SqlDataReader.  You then have two options:  Save it in the server as a temporary file and server the webpage that uses it pointing to this temp file, or make this a separate ASPX page that actually returns the bits of the image.  You must change the response's MIME type and do a binary response write operation.  I would prefer this option.

    If you need further help, post in the ASP.net forums.

    Monday, August 22, 2011 4:36 AM