To anyone interested still: AS3 function to convert a Base64 encoded Image and display it in flex!
private function testIt():void { var b:Base64Decoder = new Base64Decoder(); b.decode('base64 encoded image string goes here'); var bA:ByteArray = b.flush(); var l:Loader = new Loader(); l.loadBytes(bA); var img:Image = new Image(); img.addChild(l); img.scaleContent = true; img.scaleX = .5; img.scaleY = .5; t.addChild(img); } The "t" object is just a Canvas object in the application. It's just a rough outline. You can load the string (which is easier and more likely what you'll actually do) via HTTPService to use in the decode function. That way, you'll be able to have \n characters and there won't be any errors thrown. Hope this helps someone out there! :D -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> Your email settings: Individual Email | Traditional <*> To change settings online go to: http://groups.yahoo.com/group/flexcoders/join (Yahoo! ID required) <*> To change settings via email: mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/