0

I am recently started working on canvas , but i am stuck here I have to convert canvas into base64 without using canvas2html? How to do that

1 Answers1

0

This should do it:

var canvas = document.getElementById("canvas"),
    dataURL = canvas.toDataURL();
theharls
  • 163
  • 7