Jim,

I am using the zlib in a C program.

Alex,

The file passed t AS3 is not zip file. 

Thanks.


--- In [email protected], Jim Cheng <li...@...> wrote:
>
> 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