Re: upload image to db
| From: | phobo | Date: | Sun, 19 Nov 2000 03:51:41 +0000 |
| Subject: | Re: upload image to db | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-4545@lists.php.net to get a copy of this message | ||
see http://www.php.net/manual/features.file-upload.php
this stores the file in a temp location; you'll need to read it and insert
it (as a blob, or whatever, depending on your DBMS). I've not tried
inserting binary data into a DB, you'll have to research that.
Form ENCTYPE = "multipart/form-data"
Siggy
----- Original Message -----
From: "Jeof Oyster" <jeof@jeof.net>
To: <php-db@lists.php.net>
Sent: Sunday, November 19, 2000 12:04 PM
Subject: [PHP-DB] upload image to db
> How can I send a file, basically an image, into my database? I can't
> just do the normal thing of putting a link in the database and copying
> the file elsewhere because our host uses a mirrored server system, and
> any interactivity must be done through a database (as it is on a fifth
> server).
>
> What can I do? Do I treat it just like every other form-to-database
> insert? what kind of enctype would or do I need?
>
> Thanks!!
>
> Jeof Oyster
> Top Flight Leadership
>
> PS- Please hit reply to all so I can receive a copy of it. thanks!
>
>
> --
> 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