note 104193 deleted from function.base64-decode by cmb
| From: | cmb@php.net | Date: | Tue, 09 Jun 2015 16:59:31 +0000 |
| Subject: | note 104193 deleted from function.base64-decode by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-202790@lists.php.net to get a copy of this message | ||
Note Submitter: mekal
----
If you want to save data that is derived from a Javascript canvas.toDataURL() function, you have to
convert blanks into plusses. If you do not do that, the decoded data is corrupted:
<?php
$encodedData = str_replace(' ','+',$encodedData);
$decocedData = base64_decode($encodedData);
?>
merci..........