User-1573772286 posted
I don't really know, as I'm just learning, but try playing around with the MemoryStream property. For example, to create a PNG file (which is considered the best type says my book):
Response.ContentType = "image/png";
//create the PNG in memory
MemoryStream mem = new MemoryStream();
image.Save (mem, System.Drawing.Imaging.ImageFormat.Png); //note you save to mem, not to Response.OutputStream
//wrote from mem to output stream
mem.WriteTo(Response.OutputStream);
So you can see here that you're saving to memory, which is faster, and
maybe you don't lose the information you are losing (try it and see)
If this helped please mark me as correct answer.
MS