1. I have an imge in byte[] format and when I stream it to the Response.OutputStream, it looks completey fine. The problem is eventhough I set the .ContentType="image/gif".. the produced file ended with extension *.png! This is my code
in case anybody wants to know.. This is the issue. Before I get back the byte[] btImage1 from another method. that method should've saved the bitmap into a memorstream with ImageFormat.GIF before it gets converted to a byte[]. (something I didn't do.
I convert it to byte[] directly)
That's the crucial step.