Saving HTML 5 Canvas Into A File That User Can Download.
Using Client And Server Scripting

The image below consists of randomly generated circles drawn on HTML 5 canvas object.
You can press the Save button to save the image. It will then prompt you to dowload the image.

Wait for a while after clicking the button and the browser download should prompt you to save the file.
(C)2010 F. Permadi,