This week's giveaway is in the EJB and other Java EE Technologies forum. We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line! See this thread for details.
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.