RE: image from db to folder?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> Can you tell me how I can save an image stored in database as a
> picture(jpeg) in a folder on the server?

Just select out the data, put it in a variable, open a file with fopen()
and write that variable. Name it with a .jpg extension if you want other
programs to recognize it. Check out the fopen page for details.
www.php.net/fopen

---John W. Holmes...

PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/



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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux