Hi,
I am having a peculiar problem related to file download. My file
downloads work fine with IE and Chrome but fails on Firefox and Opera.
This is my code
byte[] data = downloadProvider.getData();
String contentType=downloadProvider.getContentType();
String fileName=downloadProvider.getFileName();
response.setContentType(contentType);
response.setContentLength((int)data.length);
response.addHeader("Content-Disposition","attachment;
filename=\""
+ fileName + "\"");
response.setHeader("pragma", "public");
response.setHeader("Cache-Control","cache");
response.setHeader("Cache-Control","must-revalidate");
ServletOutputStream outs =
response.getOutputStream();
outs.write(data);
outs.flush();
outs.close();
Could anybody point out what I must do to make my file downloads work
with Firefox and Opera.
Thanks,
Cherian
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---