This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes ZipInputStream problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "ZipInputStream problem" Watch "ZipInputStream problem" New topic
Author

ZipInputStream problem

Vidya Venkatesh
Greenhorn

Joined: Mar 06, 2003
Posts: 12
hi
I have images stored in a zip file on the server. I tried reading them using ZipInputStream, but the images are not retrieved properly when there is a client side proxy server. Otherwise it works fine. Is there any way to get over this ? Can the same be achieved in any way other than using ZipInputStream ?
Thanks
Vidya
Mallick Choppa
Greenhorn

Joined: May 23, 2003
Posts: 9
Hi,
While reading over the stream first read it into bytes array and create a ByteArrayInputstream and then pass this Stream into ZipInputstream. See if this works.
Other wise you can use DeflaterOutputStream for zipping and InflaterInputstream to read that any how internally they use GZIP compression techniques.
Mallick
mallick@orillion.stph.net
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ZipInputStream problem
 
Similar Threads
Another way to write this?
Recursively browsing archive files
Accessing image in a zip file
Decompress the HTTP Request body
Question on ZipInputStream and encoding