Closed Vitomir2 closed 1 year ago
I just used the following method and passed the Base64 string as an image, it works like a charm:
convertImageFileToBase64(fileObject) {
const reader = new FileReader()
reader.onload = event => {
this.base64img = event.target.result
}
reader.readAsDataURL(fileObject)
}
I am currently adding a feature that users will be able to upload a logo image and this to be used in the QR. Currently, I have such an File object:
When I expand the![image](https://user-images.githubusercontent.com/25567145/212862420-99dcc697-470b-461f-8b77-371129a135f0.png)
[[Prototype]]: File
, then I can see again the last modified fields, constructor, name, but I also can see a[[Prototype]]: Blob
, however, I do not know how to exactly use this to pass it to thelogoSrc
.