diddimar
1/29/2018 - 11:00 PM

FileReader asynchronous API

FileReader asynchronous API

    var myReader:FileReader = new FileReader();
  
    myReader.onloadend = (loadEvent:any) => {
      // do stuff
      image.src = loadEvent.target.result; // here id display the image before converting it to base64 and upload
    };