How can I convert the local file URL to the blob before I pass it to the FileReader. Here, I'm trying to convert the local file in the assets to convert it to blob and pass it to the file reader. Is there any way to convert it into typescript/ javascript?
let fr = new FileReader();
let somePath: any = 'file:///src/assets/someData.png';
fr.readAsText(somePath);