tags:

views:

163

answers:

3

I am looking for Zip/Unzip operation in my .NET application. I can see plenty of third party implementations, But is there one part of .NET framework?

Or let me tell you what exactly I am looking for. I may just need to package a folder and need to give a particular extension to it.

A: 

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

AJ
gzip and zip is 2 different animals.
leppie
gzip is compression for a single file. zip is oriented toward a directory structure.
No Refunds No Returns
+10  A: 

System.IO.Packaging

leppie
Darn... That library was just on the tip of my tongue and you beat me to it!
Jason Whitehorn
The interface can be used to produce a zip file, but it's a pretty complicated programming model, and it's oriented toward making "packages", not generic zip files.
Cheeso
A: 

The J# library (no longer supported) includes zip/unzip routines. Be careful with gzip as it is a single-file compression stream and has no concept of files or directories. Some folks have reported (limited) success with the cabarc tools but they're not .NET.

No Refunds No Returns
Don't use J#. Out of support, a huge runtime, buggy.
Cheeso