Quickly compress data, saving disk space and network bandwidth, and easily manipulate and work with compressed data. ComponentOne Zip™ for ASP.NET allows you to easily compress files, 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.
Features
-
Read and Write to Zip Files Stored in Streams
Zip now has the ability to 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.
-
Compress and Expand Folders
With Zip you can easily compress and expand folders while preserving folder structure.
-
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
Feature 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.
-
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.
-
Simple, Intuitive Object Model
Zip contains three main classes: 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.