This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Servlets and the fly likes word file not getting downloaded on Netscape6 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "word file not getting downloaded on Netscape6" Watch "word file not getting downloaded on Netscape6" New topic
Author

word file not getting downloaded on Netscape6

vikastarade
Greenhorn

Joined: Jul 14, 2002
Posts: 7
Hi,
I am trying to download a word (.doc) file on server.I used the following two lines of code,
response.setContentType("APPLICATION/OCTET-STREAM");
response.setHeader("Content-Disposition", "attachment; filename=\""+ filename + "\"");
This works fine in IE but for netscape6 I get the file type as .jsp instead of getting .doc, and when I choose to download the file form the existing location it shows some irrelevant data on browser itself.
Can Anyone help me to sort out the problem.
Thanx,
Vikas
Mike Curwen
Ranch Hand

Joined: Feb 20, 2001
Posts: 3695

Hi vikastarade,

Please check our naming policy and alter your display name accordingly.

As for your question, does your web server recognize the .doc MIME type ? I once had the same problem with Netscape browsers displaying garbled junk instead of downloading the file. This was for .ra files, but the problem eventually got tracked down to the web server MIME settings.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: word file not getting downloaded on Netscape6
 
Similar Threads
word doc servlet filename question
Unable to upload file
word file not getting downloaded on Netscape6
URLEncoding
jsp