📜  c# aspx 返回图片 - C# 代码示例

📅  最后修改于: 2022-03-11 14:48:55.509000             🧑  作者: Mango

代码示例2
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();