You seem to believe that the AJAX code somehow uploads the canvas to your servlet in such a way that the servlet can access the contents of the canvas. I don't know anything about the HTML 5 <canvas> element but I'm skeptical about that. My google time for this thread is up so... do you have some reason to believe that the canvas's URL is accessible from another machine?
Joined: Dec 11, 2012
The json is passing the encoded string of canvas and is trying to decode it in java file. but the file which is being created is not saving the canvas image. I wanted to kno what is wrong with my java code.