Quickly compress data, saving disk space and network bandwidth, and easily manipulate and work with compressed data. ComponentOne Zip™ for .NET allows you to compress files from your applications, including system and hidden files, and add and delete compressed files and folders; you can even read and write to zip files stored in streams.

Classes Included

  • C1ZipFile is a class that deals with zip files. It allows you to create, open, and modify zip files. C1ZipFile has a C1ZipFile.Entries property that represents a collection of entries in a zip file.
  • C1ZStreamWriter is a stream object that takes regular data on input, compresses it, and writes it out to an underlying stream. You can compress data to files, memory, or any other type of stream. You can attach a BinaryWriter object to C1ZStreamWriter to write objects directly, without dealing with byte arrays.
  • C1ZStreamReader is a stream object that takes a compressed stream as input and decompresses it as it reads data from the underlying compressed stream. You can attach a BinaryReader object to C1ZStreamReader to read objects directly, without dealing with byte arrays.

Features

  • Compress and Expand Folders

    With Zip you can easily compress and expand folders while preserving folder structure.

  • Read and Write to Streams

    Zip can read and write to zip files stored in streams in addition to actual files using the C1ZipFile.Open(Stream) method. This allows reading zip files embedded in application resources or stored in database fields instead of in actual files.

  • Get and Set File Information

    Easily obtain zip file information including a detailed list of the zip file's contents. You can also control file information by adding and retrieving comments and control path information for individual entries in the zip file, and getting and setting the global zip file comment.

  • File Integrity and Safety

    With Zip you can test the integrity of a zip file and its contents and work on temporary copies of zip files to ensure maximum safety.

  • Fast, Low Memory Usage Compression Engine

    With Zip's low memory footprint engine you can zip files or memory buffers into new or existing zip files, unzip files to disk or directly to memory, compress and decompress strings or buffers completely in memory, and add stream-based compression and decompression for maximum flexibility.

  • Compress and Manipulate Compressed Files

    Compress files, including system and hidden files, and easily manipulate compressed files by deleting files from within a zip file, controlling the amount of compression applied to files being zipped, and specifying the path where files will be uncompressed to.

  • Incorporates the ZLIB Advantage

    ZLIB is a general-purpose, lossless data-compression library with a portable, cross-platform data format. Unlike Unix compress and GIF image format LZW compression, the ZLIB compression method essentially never expands the data (LZW doubles or triples the file size in extreme cases) and has a memory footprint independent of input data.

  • Support for Zip64

    C1Zip now supports Zip64 files. This allows for entries longer than the usual 4 gig limit and also allows more entries per zip file. The maximum number of entries per ZIP file is 2,147,483,647 (int.MaxValue). The maximum uncompressed entry size is 9,223,372,036,854,775,807 (long.MaxValue).

  • 100% Managed C# Code

    C1.C1Zip.ZLib is a C# implementation of Adler and Gailly's ZLIB library. It contains a ZStream class that handles low-level stream-based compression and decompression.

  • Cross Platform Support

    Zip for .NET classes are supported in all .NET development platforms including WinForms, ASP.NET, WPF, Mobile and a special Silverlight version exists in ComponentOne Studio for Silverlight.