File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes I/O and Streams and the fly likes Error while read zip file Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Error while read zip file" Watch "Error while read zip file" New topic
Author

Error while read zip file

mahavir swami
Greenhorn

Joined: Sep 18, 2009
Posts: 13
I have zip file with size above 3GB

and i have an method that will accept file name as argument and return the file from the zip as byte array



for some file i get this exception


i searched on google but could not find proper solution
can you please help
mahavir swami
Greenhorn

Joined: Sep 18, 2009
Posts: 13
i get this exception

every time i do new ZipFile("filename"); for file with size = 3GB+
i tried with file with size of 100MB it worked properly

how do solve this , please help
mahavir swami
Greenhorn

Joined: Sep 18, 2009
Posts: 13
i was using jdk1.5 for development and was trying to read a zip file with size more than 2GB
and while searching on google i got this bug in jdk1.5 here
this bug is fixed in jdk 1.6 i guess, though i have not tried reading zip files more than 2GB in jdk 1.6
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error while read zip file