Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
10-02-2011, 09:55 AM #1
- Join Date
- Oct 2011
- Thanked 0 Times in 0 Posts
Convert string representation of ByteArray back to ByteArray
In Actionscript 3, my program saves text files, which contain various text, some of which is a string representation of a ByteArray.
It does this by using the toString() method of the flash.utils.ByteArray class, which I assume converts a ByteArray (for example, 13x$) into its string representation "13x$".
So how do you reverse the process, and turn the string ("13x$") into a ByteArray (13x$)?
Even if it's not that simple, I just need to have the ByteArray, put something in a text file, and extract from it the same ByteArray.
Last edited by Xenocidius; 10-02-2011 at 10:22 AM.