ZIP file created with SharpZipLib cannot be opened on Mac OS X

前端 未结 10 1310
有刺的猬
有刺的猬 2021-02-04 08:31

Argh, today is the day of stupid problems and me being an idiot.

I have an application which creates a zip file containing some JPEGs from a certain directory. I use th

10条回答
  •  [愿得一人]
    2021-02-04 09:20

    got the exact same problem today. I tried implementing the CRC stuff as proposed but it didn't help.

    I finaly found the solution on this page: http://community.sharpdevelop.net/forums/p/7957/23476.aspx#23476

    As a result, I just had to add this line in my code:

    oZIPStream.UseZip64 = UseZip64.Off;

    And the file opens up as it should on MacOS X :-)

    Cheers fred

提交回复
热议问题