EldoS | Feel safer!

Software components for data protection, secure storage and transfer

GZIP stream to uncompressed string

Also by EldoS: RawDisk
Access locked and protected files in Windows, read and write disks and partitions and more.
#36522
Posted: 04/19/2016 16:24:06
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

Hi

I have been using TElGZipReader to uncompress a stream and this is working perfectly when I use the Extract method saving the stream to a file.

Code
xStr is a TStringStream

xGZip := TElGZipReader.Create(nil);
try
   xGZip.Open(xStr);
   xGZip.Extract('c:\temp\','gzip.txt');
finally
   FreeAndNil(xGZip);
end;


Is there any way to uncompress to another stream or even to a string (better) ?

Thanks in advance

Eduardo
#36525
Posted: 04/20/2016 03:40:39
by Eugene Mayevski (EldoS Corp.)

Extract method has an overload, which unpacks the data to stream.


Sincerely yours
Eugene Mayevski
#36529
Posted: 04/20/2016 08:33:00
by Eduardo Helminsky (Standard support level)
Joined: 08/20/2010
Posts: 102

Eugene

My fault. I did not realize the overloaded method.

Thanks anyway, it is working like expected.

Reply

Statistics

Topic viewed 1094 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!