note 25683 added to function.bin2hex
| From: | fmmarzoa at gmx dot net | Date: | Wed, 02 Oct 2002 09:26:45 +0000 |
| Subject: | note 25683 added to function.bin2hex | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-37519@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?
--
http://www.php.net/manual/en/function.bin2hex.php
http://master.php.net/manage/user-notes.php?action=edit+25683
http://master.php.net/manage/user-notes.php?action=delete+25683
http://master.php.net/manage/user-notes.php?action=reject+25683