C# with SharpZipLib - Compatibility of SharpZipLib with Winzip and XP?

后端 未结 1 890
一向
一向 2021-01-02 16:17

I am using the CSharpZipLib library to automatically zip some files. The problem is that the resulting zip file doesn\'t work with Winzip (version 8.1) or XP\'s compressed

相关标签:
1条回答
  • 2021-01-02 16:35

    Set this in your ZipOutputStream:

     UseZip64 = ICSharpCode.SharpZipLib.Zip.UseZip64.Off
    

    Zip64 is not compatible with the Windows XP compressed folders utility or with WinZip.

    Edit: apparently the API has changed since the version I'm using, the property is now an enum rather than a Boolean value.

    0 讨论(0)
提交回复
热议问题