Error reading binary file in Javascript -


i'm trying read , write binary file (fingerprint). contents of binary files below:

tl.|¢tn>ªÏû•"q‚º†k‹ë²¶zño‰jÇ5»

i read file following command:

var input, file, fr;  input = document.getelementbyid('fileinput');  file = input.files[0];  fr = new filereader();  fr.onload = receivedbinary;  fr.readasbinarystring(file);       function receivedbinary() {     showresult(fr, "binary"); }  function showresult(fr, label) {     var result;     result = fr.result;     alert(result);      }    

but it's happening problem. when see file content has been read, characters not loaded. following file after read:

tl.|¢tn>ªÏû"qºk벶zñojÇ5»

for example, realize symbol "•", between characters û , " not read.

why? should read , write characters?


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -