Login
From:
PQINA
(Uncensored)
subscribe
Convert An Image To A DataURL or Base64 String Using JavaScript - PQINA
https://pqina.nl/blog/convert-an-image-to-a-base64-string-with-javascript/
links
backlinks
Roast topics
Find topics
Find it!
In this short tutorial we explore 3 different JavaScript methods to convert an image into a Base64 string. We look at converting a File object or Blob, a canvas element, and an image tag.