Hi!
Why not you just use base64_decode function with php script?

As for the script - this can only be done using AS3 since we dealing with
binary data here.

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Carl Welch
Sent: Thursday, May 03, 2007 8:53 PM
To: Flashcoders mailing list
Subject: [Flashcoders] xml: CDATA - base-64 encoded graphics

Hi guys,

I am working on a project where I am loading some xml. one of the nodes is
giving me CDATA that is base-64 encoded. Is there any actionscript out there
that can decode and assemble a tiny icon?

here's what it looks like:


<thumbnail>
<![CDATA[/9j/4AAQSkZJRgABAgAAZABkAAD/7AARRHVja3kAAQAEAAAASwAA/+4ADkFkb2JlAGT
AAAAAAf/bAIQAAwICAgICAwICAwUDAwMFBQQDAwQFBgUFBQUFBggGBwcHBwYICAkKCgoJCAwMDAw
MDA4ODg4OEBAQEBAQEBAQEAEDBAQGBgYMCAgMEg4MDhIUEBAQEBQREBAQEBARERAQEBAQEBEQEBA
QEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQ/8AAEQgAIAAgAwERAAIRAQMRAf/EAGEAAAICAwAAAAA
AAAAAAAAAAAAFAgYBAwkBAQAAAAAAAAAAAAAAAAAAAAAQAAIBAwMEAgMAAAAAAAAAAAECAwARBCE
iBTGRoRJBBlJiExEBAAAAAAAAAAAAAAAAAAAAAP/aAAwDAQACEQMRAD8A6AUE4YJsh/5wRtI34op
Y9hQSnxsnGIXJieInoHUrfvQaqAoLFwXNwYOGcLGxnkzJCfUgAh2N7X1BsBQNOcykTgzHywQZUq7
Yk1330Ivrp80FJoCga/WYml5eNVkaIhXIdApI2/sGHigz9nR4+WdHlaYhU3v636dNoUeKBTQFAUB
QFB//2Q==]]>

</thumbnail>


thanks.
-- 
Carl Welch
http://www.carlwelch.com
[EMAIL PROTECTED]
805.403.4819
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to