This project is read-only.

Unzipping the file gives an Arithmatic error

Dec 5, 2008 at 3:15 PM
Edited Dec 5, 2008 at 3:30 PM
Hi ,

I am trying to unzip 827MB xml file using the utility but it gives me the following error with stack trace:

ErrorMessage: Arithmetic operation resulted in an overflow.

at Ionic.Utils.Zip.ZipEntry.Read(Stream s)
   at Ionic.Utils.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
   at Ionic.Utils.Zip.ZipFile.Read(String ZipFileName, TextWriter StatusMessageWriter)
   at Ionic.Utils.Zip.ZipFile.Read(String ZipFileName)
   at FileDownloadHandler.ZipFileFunctions.UnzipFile(String zipSource, String unZipTo)

Is there is the limitation of this utility as i am successfully able to unzip the files less than 805 MB?

I ahve tried to unzip by winzip utility and it unzips successfully to the size of 4.3 GB.

Please help as i am facing this problem in production environmet.

Dec 12, 2008 at 4:16 PM
NEERBADA, I'm sorry I think this is a problem with zip64. 
A file size of over 4g requires zip64 extensions in the zip archive, and DotNetZip does not yet support zip64. 
It's on the list of things for me to do!

Dec 18, 2008 at 7:38 PM
Thanks Cheeso for the reply.

This limitation should be written in the readme.txt file also so that any user cannot face any problem in prod.

Anyway i have tried 0.85 version of Zipsharp library and it is working fine with > 4 GB files, although i have to plan for new production isntall.

Thanks again Cheeso !!!

Dec 19, 2008 at 2:04 PM
Neeraj, can you post your 827mb zip file somewhere?

About the README - thanks, I will update it.