Possible Duplicate:
Convert Data URI to File then append to FormData
Is it possible to save rendered canvas back to a file in Google Chrome?
I have tried this:
canvas.getAsFile('foo.jpg','image/jpeg')
Doesn't work.
This works only in Firefox:
canvas.mozGetAsFile('foo.jpg')
Of course I can and probably will just send raw base64 encoded string to server and decode it there.
But if it's possible to do it on client-side, i would prefer doing it there.
Maybe this Stack Overflow Question and Answer might help you.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With