Accessibility

Adding dynamic images to your website using Dreamweaver


Lucinda Dykes

Lucinda Dykes

 

book cover

www.peachpit.com

 

Table of Contents

Created:
21 March 2007
User Level:
Advanced

Dreamweaver® doesn’t support the use of image files stored as binary data in databases—in other words, you can’t use a database that stores the actual image files. However, you can add dynamic images using information about the location of the image file on the Web server. If your database includes a field for the image location, you can add dynamic images to your pages using a recordset that contains this field.

In the following tasks, you’ll add a connection to a ColdFusion database that contains an image-location field, create a recordset in Dreamweaver that includes this field, and then add a dynamic image to a page.

We’re using ColdFusion because the Cold-Fusion MX 7 installation includes a tutorial-database with an image-location field. The process for creating a ColdFusion database connection is unique to ColdFusion, but the process of defining a recordset with an imagelocation field is the same for ColdFusion, ASP, and PHP.

Requirements

To follow along with this article, you will need the following software and files:

Dreamweaver 8

Sample file:

newartcfm.zip (ZIP, 1K)

Prerequisite knowledge:

Basic knowledge of Dreamweaver 8

About the authors

Lucinda Dykes has been developing websites since 1994, and has used Dreamweaver since version 2.0; she continues to use Dreamweaver on an almost daily basis. She has written and contributed to a number of books about Dreamweaver, including “Dreamweaver MX 2004 Savvy(Sybex)” and “Macromedia Dreamweaver 8 Advanced for Windows and Macintosh: Visual QuickPro Guide.”

Excerpted from “Macromedia Dreamweaver 8 Advanced for Windows and Macintosh: Visual QuickPro Guide” by Lucinda Dykes © 2006. Used with the permission of Peachpit. To purchase this book, please visit www.peachpit.com.