I'm assuming you're using PHP based upon gzopen.

 From reading the zlib library documentation, you'll want to use the 
gzcompress function instead of gzopen to compress your string into the 
zlib data format (which corresponds to ByteArray's compress/uncompress 
methods).  Note that gzopen uses a slightly different data format, gzip, 
which is based upon, but incompatible with zlib.  This likely accounts 
for the slight difference in file size and your inability to decompress 
the file on the Flex side of things.

Hope this helps,

Jim

ACasualObserver wrote:
> 
> I create the compressed file by calling gzopen. I use wb9 for the
> mode. Should I used another mode?
> 

Reply via email to