Convert String to Image

Flash will be receiving a string from the web, either Javascript or query string from the URL(which I’m comfortable with).

GOAL: Use that string as a byte array and convert it to bitmap data and display on the screen.

MY PERCEPTION: Use ByteArray and readBytes (I’ve worked with neither before) to parse the string. Then convert that into Bitmap Data and draw the bitmap on the stage.

Any help is appreciated. Thanks in advance.