Can we ZIP/Unzip files larger than 4GB using .Net 4.5 libraries?

寵の児 提交于 2019-12-04 06:02:14

问题


We have an original zip library which uses the SharpZipLib and .NET 2.0. We need to research what is now possible in .NET 4.5 using System.IO.Compression and System.IO.Compression.ZipArchive.

Should we use .NET 4.5 libraries or use a 3rd party open source library? Also, we need to be able to zip/unzip files larger than 4GB. Samples, blogs, any help is welcomed.

Thank you


回答1:


4GB is the maximum addressible size for a 32-bit pointer, hence it will not work for larger file. But you can try Zip64 which will work for larger files. This post might help you.

Hope this will help!

Thanks Suresh




回答2:


3rd party. Use DotNetZip. It supports the Zip64 format.



来源:https://stackoverflow.com/questions/22641347/can-we-zip-unzip-files-larger-than-4gb-using-net-4-5-libraries

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!