|
I am taking an image from the database and want to output this image to the CELL of the HtmlTable control of the page.
But the following method is to output the picture to the front page. How can I achieve the effect I want, thank you
byteBLOBData = (byte []) ds.Tables [0] .Rows [0] .ItemArray [0];
MemoryStream stmBLOBData = new MemoryStream (byteBLOBData);
System.Drawing.Image image = System.Drawing.Image.FromStream (stmBLOBData, true);
image.Save (Response.OutputStream, ImageFormat.Jpeg); |
|