Sunday, August 2, 2009

Dreamweaver 8, MySQL and ASP-can anyone help with the method needed to bind an img src to a recordset ?

I have created MySql database and am now trying to include photos.. (each record has it's own photo).however, Dreamweaver 8 needs a file pointer to the image source as it will not load "binary" files. Does anyone know how to do this?

Dreamweaver 8, MySQL and ASP-can anyone help with the method needed to bind an img src to a recordset ?
You're two steps ahead of where you want to be. First decide:





Are you storing the binary data in the database, or are you storing the file name and path to the image file in the database?





If the former, you have to extract the binary data to an actual image file first, using a language like php.





In either case, the tag is %26lt;img src="xxx"%26gt;, where xxx is the path and name of the image file. It's not a Dreamweaver problem - it sounds as if you're trying to display data you're storing in the database, and the img tag can't do that - which is one reason it's a bad idea to store the actual image in the database. (Inefficiency is another.)

song meanings

No comments:

Post a Comment