<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Oct 7, 2015 at 1:42 PM, Graeme Geldenhuys <span dir="ltr"><<a href="mailto:mailinglists@geldenhuys.co.uk" target="_blank">mailinglists@geldenhuys.co.uk</a>></span> wrote:</div><div class="gmail_quote">[...]</div><div class="gmail_quote"><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">Correction, I made a silly mistake in my code. I've managed to get it to<br>
work with TCompressionStream and with ASkipHeaders = False (the default).</blockquote></div><div><br></div><div>The link that I sent has a nice explanation (and tests) about GZIP header:</div><div><br></div><div>"GZip:</div><div>2 bytes $1f $8b  (IDentification)</div><div>1 byte $08 Compression Method = deflate</div><div>1 byte $00 FLaGs bit 0   FTEXT - indicates file is ASCII text (can be safely ignored) bit 1   FHCRC - there is a CRC16 for the header immediately following the header bit 2   FEXTRA - extra fields are present bit 3   FNAME - the zero-terminated filename is present. encoding; ISO-8859-1. bit 4   FCOMMENT - a zero-terminated file comment is present. encoding: ISO-8859-1 bit 5-7   reserved</div><div>4 bytes $00000000 Modification TIME = no time stamp is available"</div><div><a href="http://www.gocher.me/GZIP">More ...</a></div><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>