I have a JSON
MyJson = {name:"file1",path:"d://photos/photo.jpg"}
I want to get photo.jpg in a const variable
const file: File = MyJson.path;
How can I do this using Angular or Javascript? This is not a duplicate of How to read text file please don't close. I want to read this file as dataUrl.