Possible Duplicate:
How to send HTML <canvas> data to server
I had made a form who can send a picture in base64 to php script. I have used this plugin to capture image with flash and put it in the canvas (Useful for preview before post the form). But how can I get the actual picture data in canvas to send it via ajax ?
(Sorry for english !) 🙂
Thank you
EDIT :
Solved !
I just pointed to the canvas
canvas = document.getElementById('canvas');
pngBase64 = canvas.toDataURL("image/png");
And in I POST my pngBase64
https://developer.mozilla.org/en-US/docs/HTML/Canvas/Pixel_manipulation_with_canvas