I'd like to generate a stream (memorystream) containing a gzipped file of a cleartext stream (memorystream, too).
What I did:
I have been using Delphizlib http://gewis.win.tue.nl/info/delphizlib/
for files, but it seems that this is unable to work with streams.
What I want:
I am generating a stream that contains a file (like from memorystream.loadfromfile)
and want to compress it. The resulting stream should contain the original file in gzipped form, that I could open as file.gz if I did memorystream.savetofile. However I DON'T want to save it to a file, because I can't guarantee that I have the right to write to any Disk.