First we have to Load the image as blob via XMLHttpRequest or fetch() and use the FileReader API ( readAsDataURL() ) to convert it to a dataURL: This snippet can convert your String, Image and even Video file to Base64 string data. const getBase64Fro...
lymcode.hashnode.dev1 min read
No responses yet.