The class worked well. Is there a way I can use BitMapData code to turn the
output into an image?

this is what is decoded - makes no sense to me:

%00JFIF%00%00%00d%00d%00%00%00Ducky%00%00%00%00%00K%00%00%00Adobe%00d%00%00%00%00„%00





%00%00
%00 %00%00a%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00!"1'¡ARb%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00%00
%00%00?%00‚l‡pF7ŠXŸ'…‰'
u+~¨
ƒ†p±±žL     }A°
9¤NR(r)"]‹§&€ k˜š^^5Y"t
H([EMAIL PROTECTED]






thanks.



On 5/3/07, Ruslan Shestopal <[EMAIL PROTECTED]> wrote:

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




--
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

Reply via email to