# ByteArray.toString?

**URL:** <https://forum.kirupa.com/t/bytearray-tostring/327682>\
**Category:** Uncategorized\
**Created:** [March 20, 2012, 5:41am UTC](https://forum.kirupa.com/t/bytearray-tostring/327682 "2012-03-20T05:41:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ColinDavies](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@ColinDavies](https://forum.kirupa.com/u/ColinDavies)\
**Post date:** [March 20, 2012, 5:41am UTC](https://forum.kirupa.com/t/bytearray-tostring/327682/1 "2012-03-20T05:41:25Z")

</div>

## Any tips on how to get this working. I have found that writeByte(0xFF); writeByte(0xFE); At the beginning of the Byte Array alters the Encoding How ever the resulting String using the toString method still creates escape characters.

I am trying to write the byteArray to another AS3 file to be compiled later.  
TIA
