On Wed, 13 Apr 2011, Ludo Brands wrote:
Downside of TGZFileStream is that it only works with a file. If you only
need to decompress an odd page than that is fine. If you have a lot of
packets with variable sizes to compress/decompress then using intermediate
files slows things down quite a lot. In my case the application runs as a
library which also adds file system access complications. Hence the modified
paszlib library I mentioned earlier which does everything in memory.
TDecompressionstream and TCompressionstream have a SkipHeader parameter which
should enable you to compress/decompress gzip streams in memory; You just have
to take care of the header blocks yourself.
The paszlib library distributed with FPC is the nommsi paszlib library.
So if you have a unit with a convenience function/class, please consider donating
it to FPC.
Michael.
Ludo
-----Message d'origine-----
De : Michael Van Canneyt [mailto:[email protected]]
Envoyé : mercredi 13 avril 2011 20:02
À : Ararat Synapse
Objet : Re: [Synalist] RE : Reading the HTTP headers of a page
On Wed, 13 Apr 2011, Felipe Monteiro de Carvalho wrote:
Hello,
Does anyone know if zlib will successfully uncompress the data
received in "gzip" method from an HTTP server? I think gzip is the
same as zlib, but I'm not sure =o
gzip adds an additional header, but this can be read with the TGZFileStream
class from zstream.
Or else which Pascal bindings or Pascal uncompressor should be used?
zstream should be able to handle it.
Michael.
----------------------------------------------------------------------------
--
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
synalist-public mailing list [email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public
------------------------------------------------------------------------------
Forrester Wave Report - Recovery time is now measured in hours and minutes
not days. Key insights are discussed in the 2010 Forrester Wave Report as
part of an in-depth evaluation of disaster recovery service providers.
Forrester found the best-in-class provider in terms of services and vision.
Read this report now! http://p.sf.net/sfu/ibm-webcastpromo
_______________________________________________
synalist-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/synalist-public