Convert AMF byte array to regular Byte Array


hi,

i had code read stream of bytes stream reader byte array.

for various reasons code had changed , can no longer fill byte array bytes stream.
meaning cant use readbytes functions.

instead of using streamreader bytes i've had use bytearray.writeobject fill bytearray.

as understand when writing object bytearray encoded amf. giving me trouble when try read data byte array did when using stream reader.

for example, when filling bytearray using stream.readbytes write

"chunkid = bytes.readmultibyte(4,"utf")" , string value returned "riff"

now when try same "chunkid = bytes.readmultibyte(4,"utf")" reading amf object in byte array returns garbled string

my question is possible convert amf object have regular bytearray?

thanks
dub



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support