Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

c# aspx return image

string Path = Server.MapPath(Request.ApplicationPath + "image.jpg");
Bitmap bmp = CreateThumbnail(Path,Size,Size);
Response.ContentType = "image/jpeg";
bmp.Save(Response.OutputStream,System.Drawing.Imaging.ImageFormat.Jpeg);
bmp.Dispose();
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #aspx #return #image
ADD COMMENT
Topic
Name
2+6 =