Servlet Guru's:

For the sake of network performance I would like
to compress the html in my servlet using Java's zip
classes and then return that byte-stream back to the
browser.  Though we can successfully compress the byte
stream we haven't been able to get the browser to
properly understand what to do with the data; it wants
to prompt the user to save it rather than uncompressing
it and rendering the HTML.

Any tips?  We have tried 'response.setContentType("text/gzip")'
but that doesn't work.

We are fairly positive this can work because if we just
put a static gzipped file on the webserver the browser
will know what to do with it, but when we try to create the
same bytestream dynamically within a serlvet it doesn't work.
We are thinking it has something to do with the content-type
or other header information.

Any thoughts are appreciated.

-Steve

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to