Hello and welcome to our community! Is this your first visit?
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    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 11:22 AM.


Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts