react-canvas-draw icon indicating copy to clipboard operation
react-canvas-draw copied to clipboard

How to convert the returned stringified object into base64?

Open ayako02 opened this issue 3 years ago • 2 comments

Is there anyway to convert the returned canvas's stringified object into base64? i couldn't add an ID into the canvas element itself, because it doesnt accept id as a prop. i tried to use toDataURL() function to convert it, but received an error said toDataURL is not a function. Does anyone has any idea on this? because i wanna upload the canvas as an image into AWS S3 bucket... Thanks!

ayako02 avatar Mar 10 '21 12:03 ayako02

https://github.com/embiem/react-canvas-draw/issues/43#issue-527164185

This might help out if you're still working on this.

caseymockbee97 avatar Mar 27 '21 05:03 caseymockbee97

https://github.com/embiem/react-canvas-draw/issues/43#issuecomment-809052891

fsolarv22 avatar Mar 29 '21 04:03 fsolarv22