Results 1 to 2 of 2
Thread: Error in unzip for large files
- 08-03-2011, 12:47 PM #1
Member
- Join Date
- Aug 2011
- Posts
- 1
- Rep Power
- 0
Error in unzip for large files
Hi,
I am using java unzip functionality to unzip a file which is greater than 100 MB.
When I test my code in Windows, the unzip functionality works fine.
But my requirement is to run the program in unix env. When i try the same code in unix env, i am getting the below exception -
05:15:38,180 ERROR main UnzipFile:148 - Errror in UNZIP File: invalid entry size (expected 121761181 but got 121757886 bytes)
java.util.zip.ZipException: invalid entry size (expected 121761181 but got 121757886 bytes)
Can you please help me in resolving this error.
Sample Code -
OutputStream out = new FileOutputStream(outFilename);
// Transfer bytes from the ZIP file to the output file
byte[] buf = new byte[1024];
int len;
while ((len = in.read(buf)) > 0) {
out.write(buf, 0, len);
}
Thanks in advance.
- 08-03-2011, 04:35 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
Similar Threads
-
Help reading large files
By JavaLatte in forum New To JavaReplies: 0Last Post: 05-11-2011, 02:29 PM -
Large Wave Files
By dane1193 in forum New To JavaReplies: 2Last Post: 02-18-2011, 10:59 PM -
Copying large files efficiently
By bayan in forum New To JavaReplies: 2Last Post: 10-27-2010, 05:01 PM -
Compare 2 large files
By bezudar in forum Advanced JavaReplies: 3Last Post: 11-23-2008, 02:18 AM -
OutofMemory while downloading large files through FTP
By deb_santanu in forum Advanced JavaReplies: 0Last Post: 11-13-2008, 01:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks