Hi, I am facing a peculiar problem while rendering binary files in IE through servlets. Actually I read binary files stored as BLOB from the database (DB2) and render them on the internet explorer using a servlet (struts action class). This is the code i use to render the files;
byteArrayOutputStream = //get byteArrayOutputStream from the database. ServletOutputStream sos = null; StringBuffer sbContentDispValue = new StringBuffer();
When I run my application on windows (using WSAD 6.0), I get a open/save/cancel dialog box. But the moment I run the application from a unix system which has Websphere 6.0, I only get a save/cancel dialog box. Besides, the filename displayed in the dialog box is improper. I tried using the content type as "application/unknown", "application/x-download". But nothing seems to be working. Has anyone of you faced a similiar problem before? Any help would be most welcome.
It's fun to be me, and still legal in 9 states! Wanna see my tiny ad?