N
Nathan Sokalski
I am using ASP.NET, VB.NET, and GDI+ to dynamically create images for
webpages. When I right-click on the dynamically created image to try to save
it to my hard drive, which I send as ImageFormat.Gif, my browser (Internet
Explorer 6.0) wants me to save it as a *.bmp file. The VB.NET line of code
that I use to send the image to the browser is:
textbitmap.Save(Response.OutputStream, ImageFormat.Gif)
Why is my browser forcing me to save an image (supposedly) sent as a gif as
a bmp? Is there some other line of code I need to add in order for IE6 to
recognize it as a *.gif file, or is this just a bug in IE6? (Yes, I know
that I can use the Save() method to save it as a file on my computer, but I
want the browser to treat the dynamically generated images the same as other
images, including the ability to download them in the intended format)
webpages. When I right-click on the dynamically created image to try to save
it to my hard drive, which I send as ImageFormat.Gif, my browser (Internet
Explorer 6.0) wants me to save it as a *.bmp file. The VB.NET line of code
that I use to send the image to the browser is:
textbitmap.Save(Response.OutputStream, ImageFormat.Gif)
Why is my browser forcing me to save an image (supposedly) sent as a gif as
a bmp? Is there some other line of code I need to add in order for IE6 to
recognize it as a *.gif file, or is this just a bug in IE6? (Yes, I know
that I can use the Save() method to save it as a file on my computer, but I
want the browser to treat the dynamically generated images the same as other
images, including the ability to download them in the intended format)