drawImage using toDataURL of an html5 canvas
问题 What I am doing now is the following: I am storing the state of a canvas using the toDataURL method and I am also trying to draw it on a canvas using the drawImage method. Here is a snippet: var lastState = states[10]; //states is an array that saves all the toDataURL of the canvas var permCtx = canvas.getContext('2d'); var img = new Image(); img.onload=function(){ permCtx.drawImage(img,0,0); } img.src=lastState; I am getting the following error in the console: 414 (Request-URI Too Large) Is