1 person found this helpful
You can iterate over the length of the String caling String.charCodeAt() on each character and write these into the ByteArray. There may be a simpler method.
Ok, I will try.
var _strEncode:string="convert this to bytarray";
var _byteArr:ByteArray=new ByteArray();
var decoder:Base64Decoder=new Base64Decoder();
Ok thanks, I was doing something like this. It's a correct answer.
Actually, what Alex suggested is probably your best bet--just
This is by far the simplest way to do this. The additional
Base64-encoding is unnecessary.