C# 将内存中的图片放到到Response输出到网页
System.IO.MemoryStream ms = new System.IO.MemoryStream();
img.Save(ms, System.Drawing.Imaging.ImageFormat.Png);
Response.ContentType = "image/png";
Response.Clear();
ms.WriteTo(Response.OutputStream);
Response.End();