I have a program that create an XML string and write it to a file
using either regular file function or zlib file function to create
compressed file. This is done on the server.

On the client, I can read and process the uncompressed file in an AS3
application using URLLoader and URLRequest. I have problem doing the
same with compressed file. The code copies the data correctly to a
ByteArray but uncompress method gives Error #2058: There was an error
decompressing the data. What can be wrong and what is the solution.

In case it is useful, the first 16 bytes of the file in HEX are:

1F 8B 08 00 00 00 00 00 00 0B CC BC 67 AF F4 CC

They match the first 16 bytes of the ByteArray.

Thanks. 

Reply via email to