How to display a Image in a Detailsview ?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bensonissac
    New Member
    • Jun 2010
    • 4

    How to display a Image in a Detailsview ?

    I want to display a Image in a Detailsview which is stored in a DataBase...How to do it..?
  • mzmishra
    Recognized Expert Contributor
    • Aug 2007
    • 390

    #2
    This link may help you

    Comment

    • Frinavale
      Recognized Expert Expert
      • Oct 2006
      • 9749

      #3
      The web browser has to be able to download the image so that the HTML image tag can display it.

      Since your images are stored in a database it is impossible for the web browser to directly access it.

      This means that you have to implement an ASPX page that the web browser can call...the ASPX page will retrieve the image from the database and write the image data to the Response.Output stream.

      So, now the web browser is able to download the image :)

      For a code example of what I'm talking about please check out my response in this thread: Convert byte array into image... I posted another code example in this thread...mouse over effect


      -Frinny
      Last edited by Frinavale; Sep 14 '10, 03:30 PM.

      Comment

      Working...