siva nathan

siva nathan

  • 1.3k
  • 747
  • 117.9k

how to add image to file type in typescript

Feb 10 2021 7:15 AM
Hi all,
 
am having image file path need to be added in file type like below
 
private file:File;
this.file = "../assets/image/image.jpg"
 
how can I achieve this or how can I assign file bytes into it to display the image

Answers (2)