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


In This Topic
    CompressGZip Method
    In This Topic
    Compresses the given input stream with the gzip algorithm to the specified output stream.
    Syntax
    'Declaration
     
    
    Public Shared Sub CompressGZip( _
       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.CompressGZip(input, output)
    public static void CompressGZip( 
       System.IO.Stream input,
       System.IO.Stream output
    )

    Parameters

    input
    The stream to compress.
    output
    The stream to write the compressed data to.
    Remarks
    Gzip is based on the Deflate algorithm, which is a combination of LZ77 and Huffman coding. Although its file format also allows for multiple compressed streams to be concatenated, gzip is normally used to compress just single files. Compressed archives are typically created by assembling collections of files into a single tar archive, and then compressing that archive with gzip. The final .tar.gz or .tgz file is usually called a tarball.
    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