c# byte[] to AMF3 ByteArray

edited November 2012 in Flash (deprecated)

I have a serialized object on server like this:
[code2=csharp]public OperationResponse GetOperationResponse(ErrorCodes errorCode, string debugMessage)
Dictionary<byte, object> encryptedDictionary = new Dictionary<byte, object>
{(byte) OperationParameters.MessageText, "Hello World"}

BinaryFormatter binaryFormatter=new BinaryFormatter();
MemoryStream memoryStream=new MemoryStream();
byte[] encryptedArray = memoryStream.ToArray();

return new OperationResponse
OperationCode = OperationRequest.OperationCode,
ReturnCode = (short)errorCode,
DebugMessage = debugMessage,
Parameters =
new Dictionary<byte, object>
{(byte) OperationParameters.EncryptedObject, encryptedArray}
Now I need to pass this object to AMF3 client. How can I do this? Out-of-the-box flash client cannot deserialaize it....

Sign In or Register to comment.