Android Question Integer Array to Byte Array

Blueforcer

Well-Known Member
Licensed User
Longtime User
im trying to send an INT Array (PixelColors(64) As Int) to my B4J server, wich put them into a SQL db.
i use HttpJob funktion to send the informations. But i dont know how to send this array with the Post method.
I cant declare the PixelColors as an byte array because it contains Int colors with huge numbers. e.g 10046822
 

DonManfred

Expert
Licensed User
Longtime User
put your data into an array and add it to a json-generator. Send the json-string and parse it back on the serverside...
Or generate a long string with all the numbers sperarated by komma.
 
Upvote 0
Top