Xceed .NET Libraries Documentation
Getting started

Xceed's streaming compression component allows you to compress data read from and written to any kind of stream as well as compress and decompress byte arrays. 

It implements the CompressedStream class which applies raw compression and decompression to data read from or written to a stream as well as the GZipCompressedStream, XceedCompressedStream and ZLibCompressedStream classes which apply formatted compression and decompression to data read from or written to a stream. 

The class library also implements static methods that allow byte arrays to be compressed and decompressed. For raw compressed data, the Compress and Decompress methods of the QuickCompression class can be used. In the case of formatted compressed data, each formatted compressed stream class has its own static Compress and Decompress methods that can be used.

Where to start

Before you get started, it is recommended that you familiarize yourself with the CompressedStream class as well as the formatted compressed stream classes:

Once you have read the introductions of the various compression classes, you can then decide which compression classes you want to use:

If you just want quick and easy compression routines, then you can use the static Compress and Decompress methods:

Examples

Of course sometimes its just easier to look at some examples in order to get started! The following examples demonstrate how to compress and decompress using all the classes and methods mentioned above: