This is my object var loginParameters = ["Tander", "ali", "1", "WINDOWS", "2.0", "TOSHIBA-PC"]
And I want to convert this object to byte array that will look like byte[] objName. But I couldn't find anything about this.
How can I succeed this?
var mainbytesArray = [];
for(var i = 0; i < loginParameters.length; i++){
var bytes = [];
for (var j = 0; j < loginParameters[i].length; ++j)
bytes.push(loginParameters[i].charCodeAt(j));
mainbytesArray.push(bytes);
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With