Discuss this help topic in SecureBlackbox Forum
Save the archive to the file
To save the archive to the file you may use either synchronous or asynchronous compression.
In the first case, once the archive has been populated, simply call TElZIPWriter.Compress() method and pass the destination file name as a parameter.
For asynchronous compression, the following steps should be performed:
TElZipWriter ZipWriter = new TElZipWriter(); ZipWriter.BeginCompression("c:\\myarchive.zip"); ZipWriter.Add("C:\\temp.txt"); ZipWriter.UpdateCompression(); ZipWriter.Add("C:\\temp.pdf"); ZipWriter.UpdateCompression(); ZipWriter.EndCompression();