Getting error while reading a Zip file of 70MB (NuGet extension Ionic.Zip)

0

I am able to unzip the files using the same code, but for the files above 65MB it is generating overflow error in ZipFile.Read

I have written the code:

using Ionic.Zip;

private void UnzipFile()
{
    using (ZipFile zip = ZipFile.Read(currentFilePath))
    {
        zip.ExtractAll(target_file_path, ExtractExistingFileAction.OverwriteSilently);
    }
}

But getting overflow error:

Ionic.Zip.ZipException
  HResult=0x80131500
  Message=Cannot read that as a ZipFile
  Source=Ionic.Zip
  StackTrace:
   at Ionic.Zip.ZipFile.ReadIntoInstance(ZipFile zf)
   at Ionic.Zip.ZipFile.Read(String fileName, TextWriter statusMessageWriter, Encoding encoding, EventHandler`1 readProgress)
   at Ionic.Zip.ZipFile.Read(String fileName)

Inner Exception 1:
OverflowException: overflow while creating filename
c#
nuget
zip
nuget-package
asked on Stack Overflow Mar 16, 2019 by Thompson

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0