I am looking this particular problem for couple of days.May be someone had this issue before and resolved it already - pls help.
Using java.lang.zip.* I have tried to zip/unzip normal zip/jar files with out any issue. No big deal .. ll good.
But, couldnt read or archive a zipfile with split / multipart file. I have used winzip to create a zip file with 5m max file size. so the file created are like a.zip, a.z01, a,z02 ....
I have tried many option and many libraries to read and extract the contents programically.
Just wondering anyone had similar problem and found a solution? I am more than happy to use any libraries as long as it could handle multipart zip and unzip.
Any help would be great.
Thanks,
arun
-
Multipart / split Java Zip / upzip issue (2 messages)
- Posted by: Arun Nair
- Posted on: March 15 2010 10:22 EDT
Threaded Messages (2)
- Multipart / split Java Zip / upzip issue by Arun Nair on March 15 2010 10:42 EDT
- Multipart / split Java Zip / upzip issue by Ralf Hauser on July 13 2012 10:56 EDT
-
Multipart / split Java Zip / upzip issue[ Go to top ]
- Posted by: Arun Nair
- Posted on: March 15 2010 10:42 EDT
- in response to Arun Nair
update - i have now used truezip and please see the example code used below. But couldn't process the one created. CheckedInputStream used as a trial but doesnt really matter.
de.schlichtherle.io.File file = new de.schlichtherle.io.File(
"D:/test/a.zip");
file.archiveCopyAllTo(new de.schlichtherle.io.File(
"d:/test/out-tzip.zip", ArchiveDetector.ALL));
byte[] buf = new byte[2048];
ZipEntry zipentry;
final File file1 = new File("d:/test/out-tzip.zip");
FileInputStream fis = new FileInputStream(file1);
InputStream checksum = new CheckedInputStream(fis, new CRC32());
ZipInputStream zipinputstream = new ZipInputStream(checksum);
zipentry = zipinputstream.getNextEntry();
System.out.println(zipentry);
-
Multipart / split Java Zip / upzip issue[ Go to top ]
- Posted by: Ralf Hauser
- Posted on: July 13 2012 10:56 EDT
- in response to Arun Nair
net.lingala.zip4j.examples.zip.CreateSplitZipFile appears to be your solution