Hi everyone, I've seen a million places on the web that post a solution to compressing servlet output. Basically the solution encapsulates the HttpServletResponseOutputStream in a GZIPOutputStream. Some solutions encapsulate the GZIPOutputStream in a PrintWriter - very handy so that you can do write() with a string, eliminating the step of converting the string to a byte array. I've been able to get a little standalone program to generate an output file via PrintWriter encapsulating GZIPOutputStream and then I can read the file back in again using GZIPInputStream. But when I do this in my servlet code, the input stream just shows up empty back at the client - I get "unexpected end of ZLIB input stream". I am not running this in a browser, by the way, the client is a standalone application. Any suggestions for why the InputStream turns up empty? And are there any straightforward ways to monitor what is getting written to that output stream on the server side? Thanks.