# Image decoding

**URL:** https://forum.kirupa.com/t/image-decoding/261518
**Category:** flash
**Created:** [May 28, 2008, 1:57pm UTC](https://forum.kirupa.com/t/image-decoding/261518 "2008-05-28T13:57:04Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gag4n](https://avatars.discourse-cdn.com/v4/letter/g/df788c/32.png) [@gag4n](https://forum.kirupa.com/u/gag4n)
#### Post date: [May 28, 2008, 1:57pm UTC](https://forum.kirupa.com/t/image-decoding/261518/1 "2008-05-28T13:57:04Z")

</div>

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.
