note 25683 rejected from function.bin2hex by spic
| From: | spic@php.net | Date: | Wed, 02 Oct 2002 09:28:39 +0000 |
| Subject: | note 25683 rejected from function.bin2hex by spic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-37520@lists.php.net to get a copy of this message | ||
How to decode large amounts of data? I've a blob field in a MySQL database. To store a image, I
read the file and encode all its contents simply with a bin2hex ($contents) call. Then, I send it to
MySQL DB with a '0x' before. But now, I don't know how to do a "hex2bin"
translation. I've seen "pack" but I didn't see how to use it to decode all
contents at once. Do someone knows?