The bzip2.zip allows to compress a file in BZIP2 format.
 

1 bzip2.zip

Compress the data stream indicated in the call argument.

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

Compress the file [webstudio.out] ans store the content of the file[webstudio.bz2].

Copy
<xsql-script>
    <body>
        <file.out.open id='out1' append='true'>
            <file name='C:/tmp/webstudio.bz2' type='absolute' />
        </file.out.open>

    	<file.out.write id='out1' append='true'>
            <bzip2.zip>
                <file name='C:/tmp/webstudio.out' type='absolute'  />
            </bzip2.zip>
    	</file.out.write>

        <file.out.flush id='out1' />
        <file.out.close id='out1' />
    </body>
</xsql-script>
Example

Generate a file [wic_xsql.bz2] from the content obtained of the database.

Copy
<xsql-script>
    <body>
    	<select prefix='m_'>
    	    <columns>xsql_data</columns>
    	    <from table='wic_xsql_script' />
    	    <where>
                xsql_code = 'wic_xsql_script'
    	    </where>
    	</select>

        <file.out.open id='out1' append='true'>
            <file name='C:/tmp/wic_xsql_script.bz2' type='absolute' />
        </file.out.open>

    	<file.out.write id='out1' append='true'>
            <bzip2.zip>
                <string.getBytes><m_xsql_data /></string.getBytes>
            </bzip2.zip>
    	</file.out.write>

        <file.out.flush id='out1' />
        <file.out.close id='out1' />
    </body>
</xsql-script>