note 56138 added to features.file-upload
| From: | mariodivece at bytedive dot com | Date: | Wed, 24 Aug 2005 18:33:10 +0000 |
| Subject: | note 56138 added to features.file-upload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-94140@lists.php.net to get a copy of this message | ||
Just wanted to point out a detail that might be of interest to some:
when using base64_encode to store binary data in a database, you are increasing the size of the data
by 1.33 times. There is a nicer way of storing the data directly. Try the following:
<?php $data = mysql_real_escape_string($data); ?>
This will leave the data untouched and formatted in the correct way and ready to be inserted right
into a MySQL statement without wasting space.
By the way, I'd like to thank therebechips for his excellent advice on data chunks.
----
Manual Page -- http://www.php.net/manual/en/features.file-upload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+56138
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+56138&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+56138&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+56138&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+56138&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+56138&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+56138&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+56138&report=yes
Search -- http://master.php.net/manage/user-notes.php