Answers for "convert svg to base64 javascript"

0

convert svg to base64 javascript

var s = new XMLSerializer().serializeToString(document.getElementById("svg"))
var encodedData = window.btoa(s);
Posted by: Guest on August-17-2021

Code answers related to "convert svg to base64 javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language