A J2EE web application cannot display a stream in the Excel in the browser?
You have said "Please use OpenInBrowser or OpenInExcel option to send the file to client. J2EE browser may doesn't support to display the Excel file but they can download it."
In my web service, I am using the following code:
System.IO.MemoryStream objStream = new System.IO.MemoryStream();
Then I convert the objStream to a byte array in .NET and send the byte array back to the J2EE client. (whether I serialize and deserialize it does not matter).
I am able to receive the byte array correctly in the J2EE web application from the Web service. I can save it to a file and then open it from disk. The chart can be viewed just fine. But if I try to display the bytearray in a browser in Excel, it displays garbage.
Do I need to set something other than the Response.ContentType to display the excel in a browser in Java?