How to work with a zip file?

I have a zip file and I want to know which library can process it? Is there a built-in method in the.net file that can unzip a zip file?

+6
c #
source share
5 answers

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

See http://www.icsharpcode.net/opensource/sharpziplib/ for details.

+8
source share

You can use the System.IO.Compression.DeflateStream class to unzip a file. There is also an example.

+4
source share

Use 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.

+4
source share

See DotNetZip created by Cheeso . See also this other answer .

+3
source share

Take a look at this: A free compression library for C # that supports 7zip (LZMA)

+1
source share

All Articles