NevronOpenVision
Nevron.Nov.Compression Namespace / NCompression Class / CompressZip Method / CompressZip(Stream,ENCompressionLevel,ENZip64Mode,String,INZipCompressor) Method
The stream to write the compressed data to.
The compression level to apply.
Specifies whether to use Zip64 extensions or not. Zip64 archives can handle files larger than 4GB, but may not be supported by some older archivers.
The password to encrypt the ZIP stream with. Pass null if you don't want to encrypt the ZIP archive.
An interface implementation that should determine the streams to compress and their names.
In This Topic
    CompressZip(Stream,ENCompressionLevel,ENZip64Mode,String,INZipCompressor) Method
    In This Topic
    Compresses the streams provided by the zipCompressor interface implementation in ZIP format to the specified output stream and encrypts the archive using the classic PKZIP encryption algorithm.
    Syntax
    public static void CompressZip( 
       System.IO.Stream output,
       ENCompressionLevel compressionLevel,
       ENZip64Mode zip64Mode,
       System.string password,
       INZipCompressor zipCompressor
    )

    Parameters

    output
    The stream to write the compressed data to.
    compressionLevel
    The compression level to apply.
    zip64Mode
    Specifies whether to use Zip64 extensions or not. Zip64 archives can handle files larger than 4GB, but may not be supported by some older archivers.
    password
    The password to encrypt the ZIP stream with. Pass null if you don't want to encrypt the ZIP archive.
    zipCompressor
    An interface implementation that should determine the streams to compress and their names.
    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