This week's giveaway is in the Spring forum.
We're giving away four copies of Learn Spring Security (video course) and have Eugen Paraschiv on-line!
See this thread for details.
Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ZipInputStream problem

 
Vidya Venkatesh
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic