Easily add Zip capability to your .NET Windows or ASP.NET application without sacrificing power and flexibility.

Code Examples

These code snippets can be copied and pasted into your project.

Code Snippet Description
Compress A Folder Demonstrates how zip the contents of a folder with progress.
Decompress A Zip File Demonstrates how to unzip a zip file with progress.
Encrypt Memory Streams Demonstrates how to zip/unzip and encrypt/decrypt data in memory.
Self-Extracting File Demonstrates how to create a self-extracting zip file.

Sample Projects Included

The samples are fully working applications in C#, VB.NET, ASP.NET, and Delphi 8 and include complete source code.

Sample Name Sample Description Languages
FolderArchive Demonstrates compressing multiple directories. VB.NET, C#
StreamArchive Demonstrates compressing and decompressing data in memory. VB.NET, C#
Streams Demonstrates compressing and decompressing streaming data. VB.NET, C#
Unzipper Demonstrates unzipping scenarios. VB.NET, C#
WebArchive Demonstrates usage in ASP.NET VB.NET, C# (ASP.NET)
ZipManager Manages compressed files similar to WinZip VB.NET, C#
Zipper Demonstrates zipping scenarios. VB.NET, C#

 Download all the Zip Compression Samples Now!

After downloading, you will need to unblock the zip before extracting it: locate the zip in Windows explorer, right-click on it, select 'Properties', and click the 'Unblock' button in the bottom-right corner of the General tab.

This will resolve the compile-time exception 'Could not load file or assembly 'Dart.*****' or one of its dependencies. Operation is not supported. (Exception from HRESULT: 0x80131515)'.