Re: making any file forcefully downloadable
John Arockiaraj <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <[email protected]> |
you can try the following :
1. Set the Content Type to "application/word"
2. Set the Response Header 'Content-Disposition' to
"attachment;filename=\"<your-file-name>.doc\" "
3. Open an InputStream to the file , read bit-by-bit and push it to
ServletOutputStream
HTH
John
-----Original Message-----
From: A mailing list for discussion about Sun Microsystem's Java Servlet
API Technology. [mailto:[email protected]]On Behalf Of Mazhar
Sent: Thursday, May 08, 2003 12:12 AM
To: [email protected]
Subject: making any file forcefully downloadable
Hi;
I have a doc file and want to push on client browser; the problem is that
client browser call MS Word to open it. I want to pop download windown.
Thanx in advance.....
Mazhar Saeed