note 62789 deleted from features.file-upload by danbrown
| From: | danbrown@php.net | Date: | Sun, 17 May 2009 18:45:45 +0000 |
| Subject: | note 62789 deleted from features.file-upload by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-155172@lists.php.net to get a copy of this message | ||
Note Submitter: chaz_meister_rock at yahoo dot com
----
As mentioned in this thread by mariodivece at bytedive dot com on 24-Aug-2005 12:33:
"when using base64_encode to store binary data in a database, you are increasing the size of
the data by 1.33 times."
so, if you are receiving the dreaded "MySQL Server has gone away" error when uploading
BLOB data encoded w/base64, remember that your MySQL "max_allowed_packet" configuration
setting (default 1MB) needs to by 1.33 times the size of your PHP "upload_max_filesize"
setting.