Contents - Index - Previous - Next


ZLibDecompressStream method


 

Applies to

TVCLUnZip component

 

Declaration

 

procedure ZLibDecompressStream(inStream, outStream: TStream; HttpCompression: Boolean = False);

 

Description

 

Decompresses data in inStream into outStream in ZLib format.  The ZLib compression and decompression routines are good for compressing a single data source most efficiently.  For instance if compressing data to be sent through the network.  The data in inStream should have previously been compressed in the ZLib format, not as a zip archive.  

 

Set HttpCompression to True if you expect the compressed data in inStream to lack ZLib headers.  This would most likely be if the data is compressed for http1.1 compliant browsers, that is, compression of web pages.  In other words, if you compressed the data using ZLibCompressStream with HttpCompression set to True, you also need to set this to True when uncompressing.