0

I create a zip File using "UseZip64WhenSaving" option as true. Once I try to extract it with "ExtractAll" method, an exception is thrown saying that the file "nameOfMyFile.z65536" does not exist. It does not happen with files created as normal zip (not zip64). Any suggestion to solve the issue?

The code creating the file:

using (ZipFile zCompressor = new ZipFile(strNameOftheZipFile))
 {
     zCompressor.UseZip64WhenSaving = Zip64Option.Always;
    FileInfo[] fiArrayFiles = dInfoBCP.GetFiles("*.bcp", SearchOption.TopDirectoryOnly);
    foreach (FileInfo fileTemp in fiArrayFiles)
    {
        zCompressor.AddFile(fileTemp.FullName);
    }
     zCompressor.MaxOutputSegmentSize = (700 * 984540);
     zCompressor.Save();
 }

The code to extract (that generates the error):

ZipFile zip = ZipFile.Read(FullNameOfmyZipFile);
zip.ExtractAll(strPathDest, ExtractExistingFileAction.OverwriteSilently);

0 Answers0