|
Hi Pete,
Excel files are binary documents -- they contain lots of non-text data. With that in mind, is it possible that somewhere along the line the system is trying to translate your Excel document from one CCSID to another?
We commonly expect this behavior with i5/OS applications, because we work so much in EBCDIC text, and the PC wants ASCII text, so we want the operating system to "automatically" translate the document. But in the case of an Excel spreadsheet, it's very important that no translation takes place.
Does the getSpreadSheet() method do any translation? (Any at all... doesn't have to be ASCII to EBCDIC... translating ASCII to Unicode would corrupt the file as well).
Does the BufferedOutputStream do any translation?
Does the HTTP server (I assume you're using Tomcat or WebSphere) do any translation?
Obviously, you want to make sure that nothing gets translated.
If all else fails, maybe you could compare the hex values of the data that the browser receives with the hex values of the data of the file in the folder. If one works and the other fails, then they must be different. If so, what's the difference? That would give you a good idea of where to look for the problem.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.