VCF Automation offers a ZipWriter class, which contains a set of functions to handle string data in the context of compressed zip files. To use these methods outside of VCF Automation, a library is available here to emulate the ZipWriter class.
Mock-up of ZipWriter Class
In addition to the implementation of the ZipWriter class, a ZipReader class is also provided. It can be used to read the contents of the generated zip files.