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)
精彩评论