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!
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 saidtoDataURL
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!