Does anyone have an example of how to use the GZIP classes to simply compress an arbitrary string to a new string and vice versa?
Essentially, I’d like to be able to write
String foo = Compress(“This is a test”);
and then later
String bar = Decompress(foo)
In practice, these strings could be many megabytes long
Candidly, I’m struggling with how to use MemoryBlock, MemoryInputStream, MemoryOutputStream with the GZIPCompressorOutputStream and GZIPDecompressorInputStream to do what seems like ought to be very simple.
While I have found a few questions about this stuff from search, answers are not so forthcoming. I know how to do this kind of thing with the zlib directly but I’d like to “live” in JUCE for this.
Thanks in advance