How to cast an object to byte array in javascript -
this object var loginparameters = ["tander", "ali", "1", "windows", "2.0", "toshiba-pc"]
and want convert object byte array byte[] objname
. couldn't find this.
how can succeed this?
var mainbytesarray = []; for(var = 0; < loginparameters.length; i++){ var bytes = []; (var j = 0; j < loginparameters[i].length; ++j) bytes.push(loginparameters[i].charcodeat(j)); mainbytesarray.push(bytes); }
Comments
Post a Comment