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? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -