What is the size of the zip you are trying to unzip? There's some limit on the size of zip you can handle using pre Java 7 Zip APIs, so may be that is the reason you are seeing the exception. I think the data size limit is 4GB. To handle data more than 4GB you need to be using the API which supports Zip64 format and the Java 7 supports it or you can use Apache Commons Compress 1.3 version for zip/unzip
Ahmed Kotb wrote:Size of Zip File is 1.2 GB and after UnZipping 7.8 GB
I think this is the reason- the unzipped is more than 4GB. Which JDK version are you using?
Try using Apache Commons Compress- The process is exactly similar just that the class names are different- You have ZipArchiveEntry, ZipArchiveInputStream and so on.
Mohamed Sanaulla wrote:
Which JDK version are you using?
I am Using Version "1.6.0_21" of JAVA
Mohamed Sanaulla wrote:
Try using Apache Commons Compress
I am not the Person Who Compress the File , So I have no control on Compressing the File , I just Take the File as it and then deal with it So is there any way in Apache Commons i Can use to Uncompress the File??