|
But I want to display the picture on the Image control or ImageButton, not directly output to the webpage, because I also want to layout and display many small pictures, and then click on the small picture to zoom in.
=====================
If you don't want to save it on the hard disk, make a separate page and display the picture
<img src = "showimg.aspx">
Write in showimg.aspx
byte [] bytes = null; //
// this time
Get bytes code
System.IO.MemoryStream ms = new System.IO.MemoryStream ();
ms.Write (bytes, 0, bytes.Length);
Bitmap bmp = new Bitmap (ms);
bmp.Save (Response.OutputStream, System.Drawing.Imaging.ImageFormat.Jpeg); |
|