Skip to content

Instantly share code, notes, and snippets.

@ccac
Forked from taterbase/bin2string.js
Created July 14, 2016 06:24
Show Gist options
  • Select an option

  • Save ccac/23f07d64d302741340f8194cc9613897 to your computer and use it in GitHub Desktop.

Select an option

Save ccac/23f07d64d302741340f8194cc9613897 to your computer and use it in GitHub Desktop.
Convert bytes to string Javascript
function bin2string(array){
var result = "";
for(var i = 0; i < array.length; ++i){
result+= (String.fromCharCode(array[i]));
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment