Our application gets a ByteArrayOutputStream in the
JSP page -- a
word document. We have the JSP header set to "application/msword".
However, when the file gets saved to the user's desktop via the "save as" dialog that pops up in Firefox, it always has 6 bytes more than the ByteArrayOutputStream equivalent (that is, the disk file has 6 more bytes).
Thus, when you try to open the disk file, it is just gibberish.
We've verified that we can write the ByteArrayOutputStream to the disk and successfully open it in Word. So, at least we do have all the file (and nothing extra) in what we're sending to the JSP page.
Perhaps there's another Http header we need to set?
Any ideas would be appreciated.
Thanks.
Thanks.
-- M