RE: [PHP-DB] Images/Picture!
| From: | Lars Wilhelmsen | Date: | Tue, 18 Jul 2000 07:38:04 +0000 |
| Subject: | RE: [PHP-DB] Images/Picture! | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-1231@lists.php.net to get a copy of this message | ||
Hi!
You really don't want to store binary files (pictures) in your DB.
It's slow to store/retrieve them.
But (If you use MySQL) You could:
Make a columns with the type of LONGBLOB,
read in a file into a variable, (remember addslashes() )
and the store it into the db with a simple "INSERT INTO " statement.
Regards,
-larsw-
--
Lars Wilhelmsen <lw@ez.no>, developer @ eZ systems <www.ez.no>
-----Original Message-----
From: salmanas@nurulfikri.com [mailto:salmanas@nurulfikri.com]On Behalf
Of Salman AS
Sent: 18. juli 2000 05:43
To: PHP-DB
Subject: [PHP-DB] Images/Picture!
Hai!!!
I want to store some pictures in my database, how i can do
it?
Clues is expected.
--
-------------------
Salman AS (SaS)
salmanas@telkom.net
-------------------
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net