On Wed, Oct 7, 2015 at 12:26 PM, Graeme Geldenhuys < mailingli...@geldenhuys.co.uk> wrote:
> Hi, > > I need to compress a file the same way as PHP's gzcompress() function: > > http://php.net/manual/en/function.gzcompress.php-pascal > <http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal> > [...] About compress a string with GZ, this one[1] show how to compress streams, that can be used to compress strings too, via something like TStringStream. =) I believe that this example is compatible with 2.6.4+. [1] http://www.gocher.me/GZIP -- Silvio Clécio
_______________________________________________ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal