# Convert String to Image

**URL:** <https://forum.kirupa.com/t/convert-string-to-image/317607>\
**Category:** flash\
**Created:** [December 27, 2010, 2:46pm UTC](https://forum.kirupa.com/t/convert-string-to-image/317607 "2010-12-27T14:46:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dplows](https://avatars.discourse-cdn.com/v4/letter/d/c2a13f/32.png) [@dplows](https://forum.kirupa.com/u/dplows)\
**Post date:** [December 27, 2010, 2:46pm UTC](https://forum.kirupa.com/t/convert-string-to-image/317607/1 "2010-12-27T14:46:53Z")

</div>

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.
