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:[EMAIL PROTECTED]
Sent:   Wed 10/6/2004 8:49 AM
To:     [EMAIL PROTECTED]
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!



Reply via email to