Re: file vs servlet through a filter

2008-11-04 Thread Tom Eugelink
Right. Sorry. Tomcat 6.0.14, Java 1.6.0_03, WindowsXP SP3. It gets even better: if the servlet copies the file's contents to its response, both have 1766 bytes returned. One gives an invalid PDF, the other not. IOUtil.copy(new FileReader(new File("C:\\...\\test.xslfo.xml")), response.

file vs servlet through a filter

2008-11-04 Thread Tom Eugelink
I have created a XSL-FO filter, it reacts on a parameter and then pulls the contents of the response through Apache's FOP. Simple exercise and it almost works. In order to capture the response output I have created a BufferedHttpResponseWrapper and BufferedServletOutputStream similar to the O