Help in creating Zip files from .Net and reading them from Java

前端 未结 6 875
野性不改
野性不改 2021-01-13 18:31

I\'m trying to create a Zip file from .Net that can be read from Java code.

I\'ve used SharpZipLib to create the Zip file but also if the file generated is valid acc

6条回答
  •  醉梦人生
    2021-01-13 18:34

    I had the same problem creating zips with SharpZipLib (latest version) and extracting with java.utils.zip.

    Here is what fixed the problem for me. I had to force the exclusion of the zip64 usage:

    ZipOutputStream s = new ZipOutputStream(File.Create(someZipFileName))
    
    s.UseZip64 = UseZip64.Off;
    

提交回复
热议问题