[snip]
I am creating images via GD and want to save them to the database. Right
now
I save them to the disk and then save them to the database. Is it
possible
to write them directly to the database and skip the middle step where I
temporary write it to the hard disk?
[/snip]

1. Do not store images in a database, it is just a bad idea from a
performance perspective (as has been covered many times heretofore). 
2. If you insist on storing the image in a database you can use any of
the image output functions, for instance;

INSERT INTO `table` (`picture`)
VALUE ('".imagegd($resource, 'imagename')."')

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to