Hello,
I create pdf using iText and I wanted zip it and send it to the browser.. this is what i did javax.servlet.ServletOutputStream servletOutputStream = response.getOutputStream(); response.setContentType("application/pdf"); response.setHeader("Content-Encoding", "gzip"); PrintStream printStream = new PrintStream( new java.util.zip.GZIPOutputStream(servletOutputStream), true); printStream.write(statementOutputStream.toByteArray()); printStream.close(); If I invoke my servlet, browser doesn't open the pdf using adobe plugin.. instead it asks me to select the application .. if I select adope , then I could see my pdf inside acrobat reader .... is any one know how to overcome this thanks a lot Anis __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com ------------------------------------------------------- Sponsored by: ThinkGeek at http://www.ThinkGeek.com/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions