note 102113 added to function.base64-decode

From: Date: Thu, 27 Jan 2011 12:25:13 +0000
Subject: note 102113 added to function.base64-decode
Groups: php.notes 
Request: Send a blank email to php-notes+get-176386@lists.php.net to get a copy of this message
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); ?> ---- Server IP: 217.160.235.204 Probable Submitter: 131.234.65.11 ---- Manual Page -- http://www.php.net/manual/en/function.base64-decode.php Edit -- https://master.php.net/note/edit/102113 Del: integrated -- https://master.php.net/note/delete/102113/integrated Del: useless -- https://master.php.net/note/delete/102113/useless Del: bad code -- https://master.php.net/note/delete/102113/bad+code Del: spam -- https://master.php.net/note/delete/102113/spam Del: non-english -- https://master.php.net/note/delete/102113/non-english Del: in docs -- https://master.php.net/note/delete/102113/in+docs Del: other reasons-- https://master.php.net/note/delete/102113 Reject -- https://master.php.net/note/reject/102113 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#176386) next »