VB example Visual C++ example Delphi example C# example VB.NET example
In the descriptions below, you can freely replace the word "compress" with "decompress" in order to find out how to decompress data, because compressing and decompressing works exactly the same way.
To compress data from one file to another in a single pass, perform the following 3 steps. Put the Xceed Streaming Compression control on a form or instantiate it, then:
Specify the format for the resulting compressed data. To do this, set the CompressionFormat property.
Tell the library to compress. To do this, call the ProcessFile method, passing the source and destination filenames and specifying True for the bEndOfData parameter.
Make sure that everything worked properly. To do this, use your language's error handling object or error handling capabilities. The Xceed Streaming Compression Library supports standard COM error handling functionality.