Inflating zlib compresed data
Posted: Tue Jun 11, 2013 12:11 am
Hi Folks,
I've been digging around the documentation trying to find an answer, without any success, so I am hoping someone here can lend their expertise. I need to uncompress some zlib compressed data in a container. I've tried using the decompress function, but I get an error about the data not being compressed. It is my understanding that the decompress function is meant to work on gzipped data, and that although both gzip and zlib use the same compressed data format, they have different
trailers and headers around the data (see RFC's 1950, 1951, and 1952), but I am certainly no expert on compression formats.
I am hoping someone here can clarify if decompress is supposed to also works with zlib compressed data, or if there is another way to do this in LiveCode.
Any help would be much appreciated.
Thanks,
Daryl
I've been digging around the documentation trying to find an answer, without any success, so I am hoping someone here can lend their expertise. I need to uncompress some zlib compressed data in a container. I've tried using the decompress function, but I get an error about the data not being compressed. It is my understanding that the decompress function is meant to work on gzipped data, and that although both gzip and zlib use the same compressed data format, they have different
trailers and headers around the data (see RFC's 1950, 1951, and 1952), but I am certainly no expert on compression formats.
I am hoping someone here can clarify if decompress is supposed to also works with zlib compressed data, or if there is another way to do this in LiveCode.
Any help would be much appreciated.
Thanks,
Daryl