I need to upload a photo (png) located locally on my assets folder to Firebase (DaaS). Now as stated in the docs i need to make a new Filetype for it.
But how would I set such a filetype for my local img? The path of the image is this:
Does anyone have a suggestion?
I managed to create a reference to the file with this:
const defaultPhoto: HTMLImageElement = new Image(); defaultPhoto.src = '../../../../assets/no_photo_avatar.png';
But now I need to convert it it to a
new File() or
new Blob() type.