开发者

How to deal with zip file?

开发者 https://www.devze.com 2023-01-24 13:45 出处:网络
I have zip file and I want to know which library can handle it? Is there built-in method in the.netframework ca开发者_如何学JAVAn unzip zip file?SharpZipLib is a good choice to use with ZIP files in .

I have zip file and I want to know which library can handle it? Is there built-in method in the.netframework ca开发者_如何学JAVAn unzip zip file?


SharpZipLib is a good choice to use with ZIP files in .NET.

See https://github.com/icsharpcode/SharpZipLib or http://icsharpcode.github.io/SharpZipLib/ for more information.


You can use the System.IO.Compression.DeflateStream class to unzip your file. There's an example there, too.


Use either GZipStream or DeflateStream in System.IO.Compression.

http://msdn.microsoft.com/en-us/library/system.io.compression.deflatestream.aspx

http://msdn.microsoft.com/en-us/library/system.io.compression.gzipstream.aspx

GZipStream is similar to DeflateStream, but contains a few extra bits to make it friendly with applications like WinZip.


Have a look at DotNetZip, created by Cheeso. See also this other answer.


Take a look at this: Free compression library for C# which supports 7zip (LZMA)

0

精彩评论

暂无评论...
验证码 换一张
取 消