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

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

keyboard - C++ GetAsyncKeyState alternative -

android - java.net.UnknownHostException(Unable to resolve host “URL”: No address associated with hostname) -