title: How to access image from assets folder to javascript object
body: <p>Hi everyone I've situation while uploading image in <strong>Angular project</strong> if user doesn't select image then i want to <strong><em>read image from the assets folder and send it to backend</em></strong>. after hours of trial and error. i'm not able to read the image from the asset folder to a JavaScript file object. if anyone knows please guide to me. Thanks in advance.</p>
  
  <p>Things i've tried</p>
  
  <ol>
  <li>I've tried to fetch it using <strong>HttpClient</strong> in Angular by passing relative path.</li>
  <li>I've tried to create file object by passing relative path to <strong>File(url)</strong>;  constructor with no luck.</li>
  </ol>
  
  <p>please help me.</p>
  
  <p><strong>My problem is to create a file object by accessing the image from asset folder in the angular(4/5) project.</strong></p>