<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Sun, Sep 4, 2016 at 1:08 PM, Marcos Douglas <span dir="ltr"><<a href="mailto:md@delfire.net" target="_blank">md@delfire.net</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi,<br>
<br>
I have streams compressed using GZip. I get these streams from WebServices.<br>
So, how can I decompress these streams only in memory?</blockquote><div>[...] </div></div><div><br></div><div>Some time ago I needed something like this, and I found the following article that helped a lot:</div><div><br></div><div><a href="http://www.gocher.me/GZIP">http://www.gocher.me/GZIP</a><br></div><div><br></div><div>BTW I shared it here at list, but I think that it wasn't so useful for more users.</div><div><br></div><div>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".</div><div><br></div><div>HTH</div><div><br></div>--<br><div class="gmail_signature"><div dir="ltr"><div>Silvio Clécio</div></div></div>
</div></div>