Support for creation of ZIP and GZIP streams