this.Response.Clear(); this.Response.ContentType = "image/jpeg"; System.Drawing.Image OC = null; //Build the image string imageName = Request.QueryString["ID"]; if (Cache[imageName] != null) { OC = (System.Drawing.Image)Cache[imageName]; // Write the image to the response stream in JPEG format. OC.Save(this.Response.OutputStream, ImageFormat.Jpeg); OC.Dispose(); }
else {this.Response.Write("Error"); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)