Decoding a byteArray image

I don’t know if this is possible (haven’t seen it done anywhere). Is there a way to decode a Base64 string back into a ByteArray and subsequently into a Bitmap so that it can be displayed within Flash?

I have successfully been able to encode the BitmapData into PNG via a PNGEncoder class. This results in a ByteArray which I have encoded using a Base64 class.

Any help much appreciated.

http://dynamicflash.com/2006/09/actionscript-30-base64-encoderdecoder/

That sounds like what you are asking for.

Thanks for the link.

I am finding the process of decoding the data into a bitmap/image the most challenging.

I have found the following but do not know how it works.
http://blog.gepatto.nl/2005/11/23/code-test/