Zlib decompression - Any ideas?

Brian Yennie briany at qldlearning.com
Mon Dec 29 18:44:21 EST 2008


Ken,

Can you compress a copy of the original file with Rev, and compare it  
to the zlib compressed copy? Does the data look totally different, or  
maybe just off by a few bytes / headers?

If you have a MacOS X machine (or Linux) handy, you can use gzip and  
gunzip as command-line equivalents of compress() and decompress() and  
see how those results compare as well...

> On 12/29/08 3:04 PM, "Mark Smith" <lists at futilism.com> wrote:
>
>> I wonder if these files are simply raw compressed data with no
>> headers or enclosing 'container'.
>>
>> I'm assuming you've tried just reading in the binary data and using
>> 'decompress' in revolution - the docs for 'compress/decompress' say
>> it's based on zlib compression.
>
> Yes, I get an error that it's "not compressed data". My  
> understanding was
> that the compress/decompress in Rev is gzip format, which is a wrapper
> around zlib-compressed data. But beyond that, I have no idea...
>
> Ken Ray
> Sons of Thunder Software, Inc.
> Email: kray at sonsothunder.com
> Web Site: http://www.sonsothunder.com/






More information about the use-livecode mailing list