# String to bytearray

**URL:** <https://forum.kirupa.com/t/string-to-bytearray/265627>\
**Category:** Uncategorized\
**Created:** [July 10, 2008, 8:22pm UTC](https://forum.kirupa.com/t/string-to-bytearray/265627 "2008-07-10T20:22:08Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![tomster](https://avatars.discourse-cdn.com/v4/letter/t/c68b51/32.png) [@tomster](https://forum.kirupa.com/u/tomster)\
**Post date:** [July 10, 2008, 8:22pm UTC](https://forum.kirupa.com/t/string-to-bytearray/265627/1 "2008-07-10T20:22:08Z")

</div>

Is it possible to convert a string to bytearray in AS3?

Thanks

---

<div class="post-metadata">

**Author:** ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)\
**Post date:** [July 10, 2008, 8:38pm UTC](https://forum.kirupa.com/t/string-to-bytearray/265627/2 "2008-07-10T20:38:36Z")

</div>

[http://livedocs.adobe.com/flex/3/langref/flash/utils/ByteArray.html#writeUTF()](http://livedocs.adobe.com/flex/3/langref/flash/utils/ByteArray.html#writeUTF())
