Aspose.ZIP for .NET class library enables your .NET applications to compress and decompress files and folders without the complexity of implementing or understanding compression algorithms. Enable your programs to work with a vast range of features, such as creating archives, saving archives, archive extraction, encrypting/decrypting archives, compressing single or multiple files as well as entire directories. You can also secure your archived or compressed files and folders with password protection, using ZipCrypto or AES encryption (128-, 192-, or 256-bit), or mixed encryption.
| Directory | Description |
|---|---|
| Demos | Source code for live demos hosted at https://products.aspose.app/zip/family. |
| Examples | A collection of .NET examples that help you learn the product features. |
- Compress files and folders into standard ZIP format using Deflate, Bzip2, LZMA, PPMd, Xz or Zstandard compression algorithms.
- Extract RAR4 and RAR5 archives, with or without encryption.
- Apply simple password or
AES128,AES192,AES256encryption to archives. - Employ different protection schemes to individual files within an archive.
- Append files to an existing ZIP archive.
- Pack files and folders into a
TARorCpioarchive combining withGzip,Bzip2,LZMA,LZ4,Lzip,Xz,ZandZstandard. - Supports
LZMA,LZMA2,PPMdorBzip2compression and optional encryption to create7zarchives. - Track the progress of compression.
- Cancel archive extraction with a cancellation token.
- Create self-extracting compressed archives.
Compression: Zip, Tar, Cpio, GZip, Bz2, Iso, Cab, Lzip, LZ4, LZMA, Xar, Xz, Z, Zstandard, 7z
Decompression: Zip, Rar, Cab, Tar, Cpio, GZip, Bz2, Z, Xar, Xz, Lzip, LZ4, Arj, Lha, Lzx, Wim, Zstandard
Aspose.ZIP for .NET is implemented in managed C# and can be used with any .NET language, such as C#, VB.NET, or F#. It integrates seamlessly with any kind of .NET application, from ASP.NET web applications to Windows desktop applications.
To install Aspose.ZIP for .NET, run Install-Package Aspose.Zip from Package Manager Console in Visual Studio to fetch the NuGet package. If you already have Aspose.ZIP for .NET and want to upgrade the version, please execute Update-Package Aspose.Zip to get the latest version.
using (var archive = new Archive())
{
archive.CreateEntry("entry_name.dat", "input_file.dat");
archive.Save("result_archive.zip");
}using (var archive = new Archive("input_archive.zip"))
{
archive.ExtractToDirectory("outputDirectory");
}using (var archive = new SevenZipArchive(new SevenZipEntrySettings(null, new SevenZipAESEncryptionSettings("p@s$"))))
{
archive.CreateEntry("data.bin", "input_file.dat");
archive.Save("result_archive.7z");
}Home | Product Page | Docs | API Reference | Examples | Blog | Search | Free Support | Temporary License