G
Grzegorz Kaczor
Hello,
I wanted to use Response.TransmitFile to return an image instead of a
HTML page. Under IE everything works well, but under Mozilla/Firefox the
image is treated as it were text/html.
When I set up content-type in response to image/jpeg everything works well.
But I would like to send any file instead of an image and thus I cannot
always know the proper content type. Is it possible to "autodetect" a
file content type? Or make IIS perform an "invisible redirect"
(something like Server.Execute but with local path name instead of URL)
so that default IIS mechanisms of content-type detection were used?
Thanks
Grzegorz Kaczor
I wanted to use Response.TransmitFile to return an image instead of a
HTML page. Under IE everything works well, but under Mozilla/Firefox the
image is treated as it were text/html.
When I set up content-type in response to image/jpeg everything works well.
But I would like to send any file instead of an image and thus I cannot
always know the proper content type. Is it possible to "autodetect" a
file content type? Or make IIS perform an "invisible redirect"
(something like Server.Execute but with local path name instead of URL)
so that default IIS mechanisms of content-type detection were used?
Thanks
Grzegorz Kaczor