try something like this
var byteArr:ByteArray = new ByteArray();
byteArr.writeUTF(hello);
trace(byteArr.length);
byteArr.position = 0;
trace(byteArr.readUTF());
(something i tried in beta2...so who knows)
--- In flexcoders@yahoogroups.com, davidgolds [EMAIL PROTECTED] wrote:
How can I
var str:String = Hi David Golds;
var bin:ByteArray = new ByteArray();
bin.writeUTFBytes( str );
Hope it helps
Regards.
--- In flexcoders@yahoogroups.com, davidgolds [EMAIL PROTECTED] wrote:
How can I convert from a String to a ByteArray?
ByteArray to String was easy
2 matches
Mail list logo