So, I need to share a base64 Image string using the Web Share API on TypeScript.
Would it be ok if I passed the base64 string as the url parameter like this:
var base64url = "data:image/octet-stream;base64,/9j/4AAQSkZ...."
navigator.share({
title: 'Hello',
text: 'Check out this image!',
url: base64url ,
})
Or do I need to have a Files Array and use Web Share API v2 ? If so, how do I implement it, all I have is a base64 string and the examples I could found were too confusing.
I am a noob in this matter so some help would be greatly appreciated!