I am fiddling with different compression techniques for a string in my application that must be vastly shortened before sending it along. When I get it back, I need to decompress it and get the original data.
After fiddling with different compression methods (gzcompress, gzdeflate, gzencode) I found that gzencode was the best by quite a large margain. The only problem I found is that it appears gzencode is only decodable when reading from a file. Is this really the case? Is there any way I can decode a gzencodee'ed string without writing it to and then reading it from a file?
Thanks.