File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Java in General and the fly likes Please help me out  with zipping :( Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Please help me out  with zipping :(" Watch "Please help me out  with zipping :(" New topic

Please help me out with zipping :(

Phi HC

Joined: Aug 21, 2002
Posts: 4
Thank you for reading this post. I am trying to write a program to backup couple files with Zip. Everything looks fine when create just one zip archive, however, not the case if I set max. size for each archive(spanning). I spent so much time on this bug and now I am totally give up. Would anyone kindly to tell what is wrong with this code?

Thanks ....
(formatted by Cindy using [ code][ /code] tags)
[ November 26, 2002: Message edited by: Cindy Glass ]
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
So exactly WHAT problem are you having when you trying using multiple files?

"JavaRanch, where the deer and the Certified play" - David O'Meara
Phi HC

Joined: Aug 21, 2002
Posts: 4
Hi Cindy,
Thanks for replying this post =)
The problem is when I try to unzip those archives using WinZip, the first file unzip properly (e.g. -- 1,291k) except the very last zip entry, which is splitted into 2) and the ones follow(e.g. -- 561k) will say "Cannot open file: it does not appear to be a valid archive."
Thanks again
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Please help me out with zipping :(
It's not a secret anymore!