JavaScript readAsBinaryString Function on E11

后端 未结 6 1879
攒了一身酷
攒了一身酷 2020-12-23 18:35

In this page http://www.html5rocks.com/en/tutorials/file/dndfiles/ if you scroll down to example \"Example: Slicing a file. Try it!\" you will see uses of readAsBin

6条回答
  •  遥遥无期
    2020-12-23 18:59

    Replace

    reader.readAsBinaryString(blob);
    

    with:

    reader.readAsText(blob);
    

    it's works well in cross browser.

提交回复
热议问题