title: Convert Base64 Image File URI to a File Object
body: <p>I have to send the <code>File</code> object as payload to the backend API. How can I convert a Base64 Image File URI to a File object format as mentioned below? I tried to look up for other solutions but those are with Blob to file conversion or base64 data url conversion. Could anyone please help?</p>
  
  <p><strong>Base64 Image File URL</strong></p>
  
  <pre><code>data:image/jpeg;base64,file:///storage/emulated/0/Android/data/com.abc/cache/1586842420784.jpg
  </code></pre>
  
  <p>This needs to be converted to </p>
  
  <p><strong>File Object</strong></p>
  
  <pre><code>File {
     lastModified: 1582829787565
     lastModifiedDate: Thu Feb 27 2020 10:56:27 GMT-0800 (Pacific Standard Time) {}
     name: "TestImageAM.png"
     size: 186278
     type: "image/png"
     webkitRelativePath: ""
  }
  </code></pre>