如何使用c#压缩8 Gb文件? [英] How can I zip a 8 Gb file using c# ?

查看:162
本文介绍了如何使用c#压缩8 Gb文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要使用C#压缩8Gb文件 - 你知道任何免费软件库

我可以用来完成这个吗?我想它需要Zip64来支持这样的

文件大小。


我尝试了一些名为sharpziplib的东西,但它不支持> 2Gb文件 -

他们正在努力但是我等不及了......

解决方案

你好,MrNobody!


MI需要使用C#压缩8Gb文件 - 你知道任何免费软件

Mlibraries

MI可以用来完成这个吗?我想它需要Zip64来支持

Msuch

Mfile大小。


MI尝试了一种名为sharpziplib的东西,但它并没有支持> 2Gb

Mfiles -

Mthey正在努力但是我等不及了...


你试试GZipStream吗?

http://msdn2.microsoft.com/en-us/lib...zipstream.aspx

您必须使用.NET 2.0才能使用它。


-

问候,Vadym Stetsyak

www: http://vadmyst.blogspot.com





" ; Vadym Stetsyak写道:


您好,MrNobody!


MI需要使用C#压缩8Gb文件 - 你知道吗?免费软件

Mlibraries

MI可以用来实现这个目标吗?我想它需要Zip64来支持

Msuch

Mfile大小。


MI尝试了一种名为sharpziplib的东西,但它并没有支持> 2Gb

Mfiles -

Mthey正在努力但是我等不及了...


你试试GZipStream吗?

http://msdn2.microsoft.com/en-us/lib...zipstream.aspx

您必须使用.NET 2.0才能使用它。


-

问候,Vadym Stetsyak

www: http://vadmyst.blogspot



看起来GZip也不会工作,来自''备注' ':


"此类不能用于压缩大于4 GB的文件。


MrNobody< Mr ******@discussions.microsoft.comwrote:

>


" Vadym Stetsyak"写道:


>你好,MrNobody!

MI需要使用C#压缩8Gb文件 - 你知道任何免费软件吗? br /> Mlibraries
MI可以用来实现这个目标吗?我想它需要Zip64才能支持
Msuch
Mfile大小。

MI尝试了一种名为sharpziplib的东西,但它不支持> 2Gb
Mfiles -
Mthey正在努力但是我等不及了...

你有没有尝试过GZipStream?
http://msdn2.microsoft.com/en-us/lib...zipstream.aspx
你必须使用.NET 2.0来处理它。

-
问候,Vadym Stetsyak
www: http://vadmyst.blogspot



看起来GZip也不会工作,来自''备注'':


此类不能用于压缩大于4 GB的文件。



4GB是32位指针的最大可寻址大小。另外,GZIP与ZIP相同并不是
,所以如果你需要PKZIP兼容性,那么你需要获得另外一个图书馆的
$ b $。


-

Thomas T. Veldhouse

主要指纹:2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1


I need to zip up an 8Gb file using C# - do you know of any freeware libraries
I can use to accomplish this? I guess it needs to be Zip64 to support such
file sizes.

I tried something called sharpziplib but it doesn''t support >2Gb files -
they are working on it however but I cannot wait...

解决方案

Hello, MrNobody!

MI need to zip up an 8Gb file using C# - do you know of any freeware
Mlibraries
MI can use to accomplish this? I guess it needs to be Zip64 to support
Msuch
Mfile sizes.

MI tried something called sharpziplib but it doesn''t support >2Gb
Mfiles -
Mthey are working on it however but I cannot wait...

Did you try GZipStream?
( http://msdn2.microsoft.com/en-us/lib...zipstream.aspx )
You must be using .NET 2.0 to work with it.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com




"Vadym Stetsyak" wrote:

Hello, MrNobody!

MI need to zip up an 8Gb file using C# - do you know of any freeware
Mlibraries
MI can use to accomplish this? I guess it needs to be Zip64 to support
Msuch
Mfile sizes.

MI tried something called sharpziplib but it doesn''t support >2Gb
Mfiles -
Mthey are working on it however but I cannot wait...

Did you try GZipStream?
( http://msdn2.microsoft.com/en-us/lib...zipstream.aspx )
You must be using .NET 2.0 to work with it.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot

Looks like GZip wouldn''t work either, from the ''Remarks'' :

"This class cannot be used to compress files larger than 4 GB."


MrNobody <Mr******@discussions.microsoft.comwrote:

>

"Vadym Stetsyak" wrote:

>Hello, MrNobody!

MI need to zip up an 8Gb file using C# - do you know of any freeware
Mlibraries
MI can use to accomplish this? I guess it needs to be Zip64 to support
Msuch
Mfile sizes.

MI tried something called sharpziplib but it doesn''t support >2Gb
Mfiles -
Mthey are working on it however but I cannot wait...

Did you try GZipStream?
( http://msdn2.microsoft.com/en-us/lib...zipstream.aspx )
You must be using .NET 2.0 to work with it.

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot


Looks like GZip wouldn''t work either, from the ''Remarks'' :

"This class cannot be used to compress files larger than 4 GB."

4GB is the maximum addressible size for a 32-bit pointer. Also, GZIP is not
the same as ZIP, so if you need PKZIP compatibility, then you need to get
another library.

--
Thomas T. Veldhouse
Key Fingerprint: 2DB9 813F F510 82C2 E1AE 34D0 D69D 1EDC D5EC AED1


这篇关于如何使用c#压缩8 Gb文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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