Send request ByteArray
Posted: 25 May 2016, 09:09
Hi
In htm5/javascript, i send request type ByteArray then at server, take string different in mobile request.
exmaple:
In mobile: {"action":0,"command":20,"cards":[9]}
in html5/javascript: {"action":0,"command":20,"cards":{"Compressed":false,"BytesAvailable":1,"Length":1,"Position":0,"Bytes":[9]}}
see different "cards":
my code:
ByteArray byteArray = new ByteArray((byte[])objParam);
obj.PutByteArray(keyParam, byteArray);
how to fix that?
thank advance
In htm5/javascript, i send request type ByteArray then at server, take string different in mobile request.
exmaple:
In mobile: {"action":0,"command":20,"cards":[9]}
in html5/javascript: {"action":0,"command":20,"cards":{"Compressed":false,"BytesAvailable":1,"Length":1,"Position":0,"Bytes":[9]}}
see different "cards":
my code:
ByteArray byteArray = new ByteArray((byte[])objParam);
obj.PutByteArray(keyParam, byteArray);
how to fix that?
thank advance