Unzip with C#

  • Thread starter Thread starter shapper
  • Start date Start date
S

shapper

Hi,

I am uploading ZIP archives to a server and I need to unzip them on a
server folder.

How can I do this?

Thanks,
Miguel
 
Hi,
SharpzipLib has been around since 1.1:http://www.icsharpcode.net/OpenSource/SharpZipLib/
Also you can use the libraries from J# in java.util.zip
and I would swear that 2.0 included aZipclass, but I cannot find it :
(

If what you mean by "I would swear..." is that .NET 2.0 Base Class
Library has a zip class - that is not correct.
..NET 2.0 does include a DeflateStream class.

To manipulate zip files you need something more that DeflateStream.

DotNetZip will do what you want, nicely.
http://www.codeplex.com/DotNetZip .

free, open source, small, simple, easy.
 
Hi,
why don't you take a look to the 7z libs? Those are written in C/C++
and are the fastest available I know about.
There's also a wrapper for .net in: http://www.codeproject.com/KB/DLL/cs_interface_7zip.aspx
Also I recommend you to take care and watch out what the users send to
you, because the unzipping process migth be really expensive for a
server (actually, I'm doing it without controlling it, but I'll pay
for that some day ;) )

Diego
 
Back
Top