Flash AS2 - Need to cache 150KB XML file. XML-to-binary a possible solution?

I need to cache a copy of an XML file locally for use by multiple Flash components on the same web page. At 150KB, this file exceeds the standard size limit of 100KB for Local Shared Objects, but I understand it might be possible to convert the XML to a binary object that can be compressed/decompressed using deflate/inflate.

Any thoughts on the best way to cache a largish XML file, possibly using the Local Shared Object? Any how-to's on converting XML to binary, compressing it, and then storing in LSO?
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

One esay way to compress XML is to replace long tag or attributs name by shorter equivalent :

replace customer by c
replace country by cn

tag names,namespaces and attributes take lot of spaces.

Just do a equivalence table to compress or decompress

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Bernard S.CTOCommented:
Apache can usually zip most files required by a single http request, although of course it is useless on gif and jpeg files.
You can probably tell your .htaccess to zip all html, css, js and xml files with huge effects on file transmitted volumes: transmitting just 30-50% of the initial size is common.

I usually use the piece of code below, that I found with some other performance advices, on developer.yahoo.com
Test the effect of placing it in your htaccess... and also browse thru the speed tips at yahoo

## enable apache served files compression
## http://developer.yahoo.com/performance/rules.html#gzip

    # Insert filter
    SetOutputFilter DEFLATE

    # Netscape 4.x has some problems...
    BrowserMatch ^Mozilla/4 gzip-only-text/html

    # Netscape 4.06-4.08 have some more problems
    BrowserMatch ^Mozilla/4\.0[678] no-gzip

    # MSIE masquerades as Netscape, but it is fine
    BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
    # Don't compress images
    SetEnvIfNoCase Request_URI \.(?:gif|jpe?g|png)$ no-gzip dont-vary

    # Make sure proxies don't deliver the wrong content
    Header append Vary User-Agent env=!dont-vary

Open in new window

B-) Maybe I should remove the test for Netscape 4!
You can change Flash Player settings to store unlimited data in LSO


Popup this link for your customers and ask to increase a limit
jscifersAuthor Commented:
Thanks--I'd considered that option, but we have hundreds of users and this solution won't work for business reasons. The most user-friendly solution will involve compressing the content under the 100KB ceiling.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Adobe Flash

From novice to tech pro — start learning today.