Thread
:
GZip compression + Flash Player + IE6 = Nightmare
View Single Post
Nutrox
17 Creative Assets
2008-11-14 #
20
Some more notes:
AIR won't automatically decode gzip or deflate encoded data even though the requests/responses are being pushed through WebKit, WebKit doesn't send an Accept-Encoding header to the server either.
So... it seems that unless you are running a SWF file in a browser you won't be able to do anything with gzip encoded data sent from a server because ActionScript can only encode/decode data using the zlib and deflate algorithms. You might be able to find a gzip encoder/decoder class someone has made though.
SWF running in a browser
gzip and deflate encoded data is automatically decoded by the browser before being passed to ActionScript (as long as the Content-Encoding header is sent from the server).
All other situations
No automatic decoding is done as far as I can tell, you need to decode the data in ActionScript.
Note on AIR
The URLLoader will dispatch a HTTP_RESPONSE_STATUS event ( HTTPStatusEvent ) that will contain an array of headers sent from the server. You could roll through the headers to determine the encoding of the data if you don't know what it will be.
Nutrox
View Public Profile
Visit Nutrox's homepage!
Find all posts by Nutrox