Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 15th, 2012  |  syntax: None  |  size: 0.20 KB  |  hits: 19  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. How to display images from sql server on webpage in c#?
  2. Response.Write(myDbByteArray);
  3. Response.ContentType = "image/png";
  4. Response.End();
  5.        
  6. <img src="Path/ToMyPage.aspx?imgId=1" alt="Some Image" />