Q: Pass canvas.toDataURL("image/bmp") from Javascript to servlet I want to POST dataURL from canvas to my servlet using Javascript or Ajax. Since my canvas has higher resolution and more data, it is not possible to send dataURL as normal request parameter. I already tried to do that by encoding dataURL with encodeURIComponent(myUrl). But it is ended up with 400 error.
