G
Guest
I'm writing a web application that fetches documents from the server and
sends them to the client. I do this using the Response.BinaryWrite method.
However, is there any way to detect the MIME type of a given file? Or a
catch-all MIME type I could use? These files will likely mainly be word and
pdf documents, but they can conceivably be anything.
sends them to the client. I do this using the Response.BinaryWrite method.
However, is there any way to detect the MIME type of a given file? Or a
catch-all MIME type I could use? These files will likely mainly be word and
pdf documents, but they can conceivably be anything.