NevronOpenVision
Nevron.Nov.Compression Namespace / NCompression Class / CompressBZip2 Method
The stream to compress.
The stream to write the compressed data to.
CompressBZip2 Method
Compresses the given input stream with the bzip2 algorithm to the specified output stream.
Syntax
public static void CompressBZip2( 
   System.IO.Stream input,
   System.IO.Stream output
)

Parameters

input
The stream to compress.
output
The stream to write the compressed data to.
Remarks
Bzip2 is a file compressor that uses the Burrows�Wheeler algorithm. Like gzip it is only a compressor for single files and not a full archiver. Bzip2 compresses most files more effectively than the older LZW (.Z) and Deflate (.zip and .gz) compression algorithms, but is considerably slower.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 7, Windows Server 2019, Windows Server 2016, Windows Server 2012 R2, Windows Server 2012, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later)

See Also