Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

convert svg to base64 javascript

var s = new XMLSerializer().serializeToString(document.getElementById("svg"))
var encodedData = window.btoa(s);
 
PREVIOUS NEXT
Tagged: #convert #svg #javascript
ADD COMMENT
Topic
Name
7+8 =