Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to deal with zip file?

Tags:

c#

.net

I have zip file and I want to know which library can handle it? Is there built-in method in the.netframework can unzip zip file?

like image 769
user496949 Avatar asked Nov 12 '10 11:11

user496949


2 Answers

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.

like image 124
Pieter van Ginkel Avatar answered Oct 07 '22 21:10

Pieter van Ginkel


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

like image 22
Federico González Avatar answered Oct 07 '22 21:10

Federico González