my dog learned polymorphism*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Please help me out  with zipping :(" Watch "Please help me out  with zipping :(" New topic
Author

Please help me out with zipping :(

Phi HC
Greenhorn

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"
Sheriff

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
Greenhorn

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
Sincerely,
Phi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Please help me out with zipping :(
 
Similar Threads
Problem zipping the file
creating jar using java.util.jar
Not able to put some files inside Zip file
Size of an Object
Unable to create ,zip file