Hi, I would like to force IE to download a binary file, like a .pdf, or .doc file. What I do is I call: res.setContentType("application/octet-stream"); However, IE still displays the contents of the file. What I want is to force the display of a "Save As" dialog box. How can I go about doing this? Thank you.
Hi Rene, Thanks for the tip, it works! However, I couldn't find this technique anywhere else. I mean, I have two books (O'reilly and Sun), but they both don't have anything about this Content-disposition header. What I want to find out is where or how can I know about things like this when get stuck again in the future? Thanks again in advance.