<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 7, 2015 at 12:26 PM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:mailinglists@geldenhuys.co.uk" target="_blank">mailinglists@geldenhuys.co.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Hi,<br>
<br>
I need to compress a file the same way as PHP's gzcompress() function:<br>
<br>
<a href="http://php.net/manual/en/function.gzcompress.php" rel="noreferrer" target="_blank">http://php.net/manual/en/function.gzcompress.php</a><span class=""><font color="#888888"><a href="http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal" rel="noreferrer" target="_blank">-pascal</a><br>
</font></span></blockquote></div><div>[...]</div><div><br></div><div>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. =)</div><div><br></div><div>I believe that this example is compatible with 2.6.4+.</div><div><br></div><div>[1] <a href="http://www.gocher.me/GZIP">http://www.gocher.me/GZIP</a></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>