Go Back   CodingForums.com > :: Client side development > Flash & ActionScript

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2011, 09:55 AM   PM User | #1
Xenocidius
New to the CF scene

 
Join Date: Oct 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Xenocidius is an unknown quantity at this point
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..
Xenocidius is offline   Reply With Quote
Reply

Bookmarks

Tags
array, byte, bytearray, representation, string

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:28 PM.


Advertisement
Log in to turn off these ads.