Skip to content

Documentation and code examples for IronZIP (ironsoftware.com/csharp/zip)

Notifications You must be signed in to change notification settings

iron-software/IronZip.Examples

Repository files navigation

Nuget Installs Passed windows linux macOS microsoftazure docker aws livechat

IronZIP - Compress and Decompress with Ease in C#

IronZIP NuGet Trial Banner Image

IronZIP simplifies the creation, modification, and saving of archive files in C# applications, thanks to the robust APIs provided by Iron Software.

Highlights of IronZIP:

  • Handles numerous archive formats: Images (jpg, png, gif, tiff, svg, bmp), Text, Documents (PDFs, DOCX, XLSX), Audio (MP3, WAV), and deeper ZIP archives.
  • Provides password protection options: Supports Traditional, AES128, and AES256 encryption.
  • Opens password-secured ZIP archives.
  • Unpacks ZIP, TAR, GZIP, and BZIP2 archive contents.
  • Offers 9 distinct compression levels.
  • Permits file additions to pre-existing archives.

Explore more on our homepage including rich code examples and a comprehensive feature list.

Cross-platform compatibility of IronZIP:

  • Versions: .NET 8, .NET 7, .NET 6, .NET 5, Core 2x & 3x, Standard 2, and Framework 4.6.2+
  • Operating Systems: Windows, macOS, Linux, as well as Docker, Azure, and AWS platforms

IronZIP Cross Platform Compatibility Support Image

Discover our comprehensive licensing details on our website.

How to Utilize IronZIP

Installing the IronZIP NuGet package is streamlined:

PM> Install-Package IronZIP

After installation, introduce IronZip; at the beginning of your C# scripts. Below are some practical examples:

using IronZip;

string file_path = "./archive.zip";
IronZipArchive.ExtractArchiveToDirectory(file_path, "unarchived"); // This will extract all files to the 'unarchived' directory

// Initiating a new ZIP archive
using (var archive = new IronZipArchive())
{
    // Adding files to the archive
    archive.Add("./assets/doc.pdf");
    archive.Add("./assets/img.png");

    // Saving the created ZIP archive
    archive.SaveAs("./output/archive.zip");
}

Features Breakdown

Archive Creation
  • Media Types: Images (JPG, PNG, GIF, TIFF, SVG, BMP), Text files, and Documents (PDF, DOCX, XLSX)
  • Audio: MP3, WAV
  • Archive Types: ZIP, TAR, GZIP, BZIP2
Archive Extraction
  • Supported Formats: ZIP, TAR, GZIP, BZIP2

Support and Licensing Options

For in-depth tutorials, code samples, and further documentation, head to https://ironsoftware.com/csharp/zip/

For queries, reach out to us at [email protected]

Documentation Resources

About

Documentation and code examples for IronZIP (ironsoftware.com/csharp/zip)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages