Image decoding

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.