The function gzip.zip allows to compress a file in GZIP format.

1 gzip.zip

Compress the data stream indicated in the call argument.

<gzip.zip>
    <object2Stream /> !
</gzip.zip>
Example

Compress the file [sample_gzip.txt] and store the content of the file [sample_gzip.gz].

Copy
<xsql-script name='gzip_zip'>
    <body>		
        <file.bytes.write>
        	<file name='C:/tmp/sample_gzip.gz' type='absolute' />
            <gzip.zip>
            	<file name='C:/tmp/sample_gzip.txt' type='absolute' />
            </gzip.zip>
        </file.bytes.write>
    </body>
</xsql-script>