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
Send request ByteArray
Re: Send request ByteArray
Hi,
I am not sure how can you send a ByteArray via Javascript API. We don't support direct use of ByteArrays.
What are you trying to send? What kind of data is it?
Thanks
I am not sure how can you send a ByteArray via Javascript API. We don't support direct use of ByteArrays.
What are you trying to send? What kind of data is it?
Thanks
Re: Send request ByteArray
it's type byte[].
example: i try send byte array id about cards. byte[] {1,3,4}.
But i must to convert from byte[] to ByteArray. to putByteArray follow syntax.
So, can u help me to fix ??
thank
example: i try send byte array id about cards. byte[] {1,3,4}.
But i must to convert from byte[] to ByteArray. to putByteArray follow syntax.
So, can u help me to fix ??
thank
Re: Send request ByteArray
As I have explained, byte arrays are not supported in the HTML 5 API as of this moment.
I would simply recommend to send the cards id as numbers, instead of bytes.
Thanks
I would simply recommend to send the cards id as numbers, instead of bytes.
Thanks
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 31 guests