RE: displaying blob images from a mssql db
| From: | Jensen, Kimberlee | Date: | Thu, 07 Oct 2004 16:00:17 +0000 |
| Subject: | RE: displaying blob images from a mssql db | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-198844@lists.php.net to get a copy of this message | ||
Most often, when people are storing an binary file in a db, they are storing the absolute path to
the file on the file system instead. So it should be as simple as extracting the file path from the
database, using the copy() function to copy that file from the original file path to a location
somewhere under the public_html/www/inetpub directory so it's accessible to the web server
(make sure the directory, such as images, has the proper write permissions so that the script can
write a file into that directory) and then generate the img tag pointing to the new file location.
-----Original Message-----
From: blackwater dev [mailto:blackwaterdev@gmail.com]
Sent: Wed 10/6/2004 8:49 AM
To: php-general@lists.php.net
Cc:
Subject: displaying blob images from a mssql db
Ok, I know images shouldn't be saved in the db but this isn't my db so
I can't change that. Does anyone know of a good tutorial to show me
how to grab these blog jpg's and display them in a browser?
Thanks!