Thanks for that. But as i went thru function imagejpeg
"int imagejpeg ( resource image [, string filename [, int quality]])"
argument image is returned be "resource imagecreate ( int x_size, int y_size)"
so where will i be providing my database stored data to create image?
Thanks in Advance again