RE: displaying blob images from a mssql db

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

 



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@xxxxxxxxx]
Sent:	Wed 10/6/2004 8:49 AM
To:	php-general@xxxxxxxxxxxxx
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!




[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux