I want to POST dataURL from the canvas to my servlet using Javascript or Ajax. Since my canvas has a higher resolution and more data, it is not possible to send dataURL as a regular request parameter. I already tried to do this by encoding dataURL with encodeURIComponent(myUrl). But it ended with a 400 error.
source
share