Re: Images from a database ...
| From: | Andrey Hristov | Date: | Wed, 10 Oct 2001 15:43:23 +0000 |
| Subject: | Re: Images from a database ... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70688@lists.php.net to get a copy of this message | ||
Write to temp file in /tmp direcotry
That read the content with fread() and put the content into the blob but
addslashes before inserting.
delete the temp file.
the name of the file must be unique so >=2 processes to access same file.
use md5 from something (IP,time,username, combination of previous)
--
Andrey Hristov
Web Developer
IcyGEN Corporation
BALANCED SOLUTIONS
http://www.icygen.com
On Wednesday 10 October 2001 18:31, you wrote:
> i want to store images of my site into a database using blob fields in an
> interbase db ...
>
> the function createimagefromgif ... returns a pointer at the image ... no
> the image content ....so i can´t just store the returned value in the db
> ... but i cant find another function to do this ...
>
> anyway ... if i have te content stored in the db ... and i make a query and
> get te content into a variable .... $img for example ...
> imagegif() uses like parameter a pointer to an image , no te image content
> ... so i need a pointer to $img .... no $img ....
>
>
> heeeelp please !!!!