var str:String = "Hi David Golds"; var bin:ByteArray = new ByteArray(); bin.writeUTFBytes( str );
Hope it helps Regards. --- In [email protected], "davidgolds" <[EMAIL PROTECTED]> wrote: > > How can I convert from a String to a ByteArray? > > ByteArray to String was easy courtesy of ByteArray.toString but I > can't see a way to do the reverse. > > Thanks > ------------------------ Yahoo! Groups Sponsor --------------------~--> Great things are happening at Yahoo! Groups. See the new email design. http://us.click.yahoo.com/TISQkA/hOaOAA/yQLSAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/

