Ionic 2 filereader

Hi all,

Below my app component.ts

decalre var window;

var reader = new FileReader();
reader.onload = readSuccess;
function readSuccess(evt) {

I can see in the log the reader with all the wanted content of my file under result, but I’m not able to get it and use it. The readyState is 2, but all inside reader.onloadend isn’t called. With Ionic 1 this code works without any problems.

I would be very glad, if there’s anyone how can help me. Thanks in advance!

any solution for this issue, I am facing similar issue.