Could someone let me know how to display images from coldfusion, using ms access or mysql dms? What is the best way to do it? use a link from the database or make the field a blob or whatever? What is the prefered way and why?
I do this with several sites. I usually have a field in a table for the image file name (image1.jpg, for example). Then I make sure all of the images are in a specific folder (ImageFolder, for example). Then in my cfquery, I have it select the image name from the table, and I have it output into a html image tag.
<CFQUERY datasource="MYDSN" NAME="GetDocs">
SELECT Record1, Record2, Record3, Image
FROM tbl1
</CFQUERY>
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.