When downloading a PDF document that is less than 8000 bytes long, the document is downloaded but is not displayed. How can I fix this?
We've solved the problem with a little help from the buglist of Microsoft IE knowledge base. Setting the Content-Length in the response object, shoud do the trick.
byte data = ...;
BufferedWriter out = new BufferedWriter(new OutputStreamWriter(response.getOutputStream()));