On 04/09/16 18:08, Marcos Douglas wrote:
> Hi,
> 
> I have streams compressed using GZip. I get these streams from WebServices.
> So, how can I decompress these streams only in memory?

Perhaps have a look at zlibar. The main, and only, unit contains these
functions:

function CompressStream(InStream: TStream; OutStream: TStream): Integer;
function ExtractStream(InStream: TStream; OutStream: TStream): Integer;

I think this is what you are looking for. I don't know about file
headers. At least it would form a good starting point.

Good luck!

-- 
Ewald
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to