我们可以使用.Net 4.5库来压缩/解压缩大于4GB的文件吗? [英] Can we ZIP/Unzip files larger than 4GB using .Net 4.5 libraries?

查看:291
本文介绍了我们可以使用.Net 4.5库来压缩/解压缩大于4GB的文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个使用SharpZipLib和.NET 2.0的原始zip库。我们需要研究现在可能在.NET 4.5中使用System.IO.Compression和System.IO.Compression.ZipArchive。



我们应该使用.NET 4.5库使用第三方开源库?
另外,我们需要能够压缩/解压缩大于4GB的文件。

解决方案


div>

4GB是32位指针的最大可寻址大小,因此它不适用于较大的文件。但你可以尝试Zip64它将工作在较大的文件。 帖子可能会帮助您。



希望这会有所帮助!



感谢
Suresh


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

解决方案

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

这篇关于我们可以使用.Net 4.5库来压缩/解压缩大于4GB的文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆