I want to convert my file which extends blob to byte array ? Is there any function in typescript which can do that?
Asked
Active
Viewed 3,648 times
0
-
1take a look at this [answer](https://stackoverflow.com/a/50859749/3617380) – hackape Apr 12 '19 at 06:20
-
1side note, this is not a typescript question, it's a javascript question. – hackape Apr 12 '19 at 06:21
1 Answers
0
You can use fileReader
var r = new FileReader();
r.onload = function(){ alert(r.result); };
r.readAsBinaryString(file);

Ashok
- 743
- 4
- 13