PDA

View Full Version : GD Image to Database


mr_ego
02-28-2004, 03:23 AM
Instead of outputting my image to the browser or to a file, I would like the image to be put into a Database as a JPEG. I looked at PHP.NET and I coudn't figure out a way to do it.

Can it be done? How?

mr_ego
02-28-2004, 04:12 AM
Found out how ...
Just Obend your output.


ob_start();
ImagePNG($im);
$db = ob_get_contents();
ob_end_clean();