I've been messing around with the ByteArray for some time now, and I wonder
if there isa way to convert the ByteArray to a string (ie using toString())
and then converting that string
back into a ByteArray which would then be the same as the original
ByteArray.

This would mean I could include an AMF serialized object in an xml document
and later deserialize
it from that string in the xml...

Is this possible? ByteArray doesn't have a "fromString" method and I've
tried writeUTF and writeUTFBytes but that
doesn't seem to be right.

I did manage to get the bytes one by one from the byte array, creating a
string like "10,245,343,12.....",
and later doing some split() join() stuff to finally assemble the ByteArray
- but this seems a bit complex and
maybe even slow. Am I missing something? Can it be done much faster?


Kind regards,
John
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to