Nevron Open Vision Documentation
Nevron.Nov.Compression Namespace / NCompression Class / CompressBZip2 Method
The stream to compress.
The stream to write the compressed data to.


In This Topic
    CompressBZip2 Method
    In This Topic
    Compresses the given input stream with the bzip2 algorithm to the specified output stream.
    Syntax
    'Declaration
     
    
    Public Shared Sub CompressBZip2( _
       ByVal input As System.IO.Stream, _
       ByVal output As System.IO.Stream _
    ) 
    'Usage
     
    
    Dim input As System.IO.Stream
    Dim output As System.IO.Stream
     
    NCompression.CompressBZip2(input, output)
    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