# Convert String to ByteArray

**URL:** <https://forum.kirupa.com/t/convert-string-to-bytearray/320429>\
**Category:** flash\
**Created:** [March 23, 2011, 10:02am UTC](https://forum.kirupa.com/t/convert-string-to-bytearray/320429 "2011-03-23T10:02:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![boywithumbrella](https://avatars.discourse-cdn.com/v4/letter/b/8491ac/32.png) [@boywithumbrella](https://forum.kirupa.com/u/boywithumbrella)\
**Post date:** [March 23, 2011, 10:02am UTC](https://forum.kirupa.com/t/convert-string-to-bytearray/320429/1 "2011-03-23T10:02:07Z")

</div>

[CENTER]hi, I’m working on a small web project Combines between flash AS3 and php ,the project Depends on three steps…

1- convert bitMapData to byteArray |with JPGEncoder |  
2- convert byteArray to String and Send it to php and data Base.  
3- receive again the string byteArray from php and convert it again to byteArray.

the problem is STEP3 \>\> How to convert String to byteArray??

Thank you to anyone who can help me!!!  
[/CENTER]
