readAsDataURL not working

For some reason, the readAsDataURL isnt working and it isnt showing me an error message either.
the path & file name seem fine, they are :
filePath: file:///storage/emulated/0/Android/data/io.ionic.starter/cache/1763816379-cropped.jpg
path : file:///storage/emulated/0/Android/data/io.ionic.starter/cache/
fileName: 1763816379-cropped.jpg

 showCroppedImage(ImagePath) {
    var filePath = ImagePath;
    let fileName = filePath.split("/").pop();
    let path = filePath.substring(0, filePath.lastIndexOf("/") + 1);
    alert(filePath);
    alert(fileName);
    alert(path);
    alert("works till here");
    this.file
      .readAsDataURL(path, fileName)
      .then((base64) => {
        alert(base64);
      })
      .catch((err) => {
        console.log(err);
        alert(err);
      });
  }