wood burning stoves 2.0*
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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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. back_001.zip -- 1,291k) except the very last zip entry, which is splitted into 2) and the ones follow(e.g. back_002.zip -- 561k) will say "Cannot open file: it does not appear to be a valid archive."
Thanks again
It is sorta covered in the JavaRanch Style Guide.
subject: Please help me out with zipping :(