wood burning stoves 2.0*
The moose likes General Computing and the fly likes Should the download code be modified specially for office2003  Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » General Computing
Bookmark "Should the download code be modified specially for office2003  " Watch "Should the download code be modified specially for office2003  " New topic
Author

Should the download code be modified specially for office2003

PraveenKumar Kannankutty
Greenhorn

Joined: Aug 02, 2005
Posts: 13
Below attached is the code that iam using to set the header for download.

response.setHeader(
"Content-Disposition",
"download;filename=" + fileName);
response.setHeader(
"Content-Type",
"application/x-download; charset=SHIFT_JIS");

This holds good for downloading the file in OFFICE 2000 but junk values are getting displayed.
Can anyone help me out for the same.
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

Junk values are being displayed by what? Where? When?

This isn't really a Java question; I'm moving it to "General Computing."


[Jess in Action][AskingGoodQuestions]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Should the download code be modified specially for office2003
 
Similar Threads
xlsx file name problem in internet explorer
Force client application to open download
set Content-Type
download link in jsp ?
URL-Pattern, Internet Explorer and Flash Videos