I\'m having difficulty using data created with canvas\'s todataurl() method. Currently my code sends the resulting data to my php server which uses the file_put_contents() m
Another important note is you have to convert blanks into plusses. If you do not do that, the decoded data is corrupted:
$encodedData = str_replace(' ','+',$encodedData); $decocedData = base64_decode($encodedData);
You can read more at http://www.php.net/manual/en/function.base64-decode.php