System.Drawing.Image img = System.Drawing.Image.FromFile("c:\mm.jpg");
System.IO.MemoryStream ms = new System.IO.MemoryStream();
img.Save(ms, System.Drawing.Imaging.ImageFormat.Jpeg);
Response.ClearContent();
Response.BinaryWrite(ms.ToArray());
Response.ContentType = "image/jpeg";//指定输出格式为图形
asp.net动态输出图片的代码
最新推荐文章于 2024-09-03 15:44:23 发布