So, I must admit, I thought that if I wanted to build ZIP (compression) into a .NET Application, that I would have to use some 3rd party control, like WinZIP.  Well, I just learned today, that NO, it's actually built into the framework.

Check out this article on that tells you how to do it.  Very, very nice!

Here's the article:


Updated Information

I've already indicated the lack of knowledge I had on this wonderful capability of the framework.  Well, based on my earlier posting (above), one of my colleagues Daniel Kornev (Developer Evangelist for Microsoft Russia) has added to my education by pointing out that the framework also has a "Package Class," found in System.IO.Packaging.  The package class implements true .ZIP functionality, versus the GZIP option as the article above mentions.

From the MSDN Site:

"Microsoft .NET Framework version 3.0 uses packages to store content, resources, and relationships for pages and documents using a standard ZIP file by default. Like with any ZIP file, your application can use the System.IO.Packaging classes to store and optionally protect any type or number of data files in a single efficient to access container."

Thanks Daniel for pointing this capability out to me, and I thank Aaron for his comment on my original post, pointing out that GZIP is using a compression stream and is not the same thing as a ".ZIP" file compression.  It's a good thing that I subscribe to my teams blog, you learn something new everyday. :)


~ Robert Shelton