• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Should the download code be modified specially for office2003

 
PraveenKumar Kannankutty
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Junk values are being displayed by what? Where? When?

This isn't really a Java question; I'm moving it to "General Computing."
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic