[fpc-pascal] GZip - Stream decompress only in memory
silvioprog
silvioprog at gmail.com
Sun Sep 4 21:46:57 CEST 2016
On Sun, Sep 4, 2016 at 1:08 PM, Marcos Douglas <md at delfire.net> wrote:
> Hi,
>
> I have streams compressed using GZip. I get these streams from WebServices.
> So, how can I decompress these streams only in memory?
[...]
Some time ago I needed something like this, and I found the following
article that helped a lot:
http://www.gocher.me/GZIP
BTW I shared it here at list, but I think that it wasn't so useful for more
users.
Anyway, in attachment a small example that uncompress (in memory) a small
compressed file named "content.tar.gz", it is just the GNU license
compressed with Linux tar tool, the sample is going to save the
uncompressed content in a file named "content.txt".
HTH
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160904/27342d91/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gz.zip
Type: application/zip
Size: 10451 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20160904/27342d91/attachment.zip>
More information about the fpc-pascal
mailing list