Lianja
Lianja
bz2 Compress File
Compress a file to the bz2 file format.Chilkat Lianja Downloads
llSuccess = .F.
// This example requires the Chilkat API to have been previously unlocked.
// See Global Unlock Sample for sample code.
loBz2 = createobject("CkBz2")
// Compress the file qa_data/hamlet.xml to create qa_output/hamlet.bz2
llSuccess = loBz2.CompressFile("qa_data/hamlet.xml","qa_output/hamlet.bz2")
if (llSuccess <> .T.) then
? loBz2.LastErrorText
release loBz2
return
endif
? "Success."
release loBz2