I'm writing a program that processes a huge 4MB binary file in Flash 9.
Thing is, if I compress it (specifically with gzip) I can lower the size to
1.67MB. My problem is that I can't uncompress it using ByteArray's
uncompress() feature on the gzipped file.

The documentation for compress() says that it uses zlib compression. Zlib is
a compression library that is based on gzip. The even use the same
algorithim, DEFLATE. I'm sure there's a way to do this.

Does anybody have any ideas? Since they're roughly the same it seems like
all you'd need is to change some header values, but I can't find anything
myself.

There's a GZ header before the DEFLATE stream, see http://www.faqs.org/rfcs/rfc1952.html

Nicolas
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to