Aspose.ZIP for .NET is a flexible documents compression and archive manipulation API for standard ZIP format. API enables .NET applications to achieve files compression/decompression, archiving files as well as folders and encryption of archives. This API works with all well known archive formats: ZIP, RAR, 7Zip, GZIP, BZ2. And with many archive formats from Linux: CPIO, TAR, Lzip, Bzip2, XZ, Z. It provides protection via user-defined passwords and traditional encryption using ZipCrypto or AES encryption such as AES128, 192 and AES256.

.NET Core and .NET Framework Compression API Features

Easy Integration

Create an archive from one or more files

Add files to archives without compression

Encrypt or decrypt whole archive or specific entries

Add entries to existing archive

Delete entries from existing archive

Compress folder respecting its structure

Decompress to directory respecting archive structure

Compress any size documents by applying parallelism

Integrating Compression API in a .NET Application

The compression library integration is simple whereas most of the compress & decompress operations can be performed with just a few lines of code.

Single file compression - C#


     var dir = "full directory path";

     using (var arch = new Archive()){

        arch.CreateEntry("filename.dat", dir+"file.dat");
        arch.Save(dir+"result.zip");

     } 
   
   
  

Support and Learning Resources