all groups > coldfusion flash integration > august 2005 >
You're in the

coldfusion flash integration

group:

Display Images


Re: Display Images Abinidi
8/4/2005 12:00:00 AM
coldfusion flash integration:
You would not want to store the actual image in the database, as that would
involve converting it to binary, and will bloat the db fast. What you will want
to do is store the path of the image in the database, and the actual image in a
folder on the site, such as 'images\imagename.jpg' - then take that path and
store it in a db.

Then do a query of the db and get the image path, and use it for the img src
value:

<cfquery name="get_image" datasource="#dsn#">
Select image_path From Tablename
</cfquery>
<cfoutput query="get_image">

<img src="#image_path#">

</cfoutput>


This is pretty basic, but should be the logic you are looking for.
Display Images vguruindia
8/4/2005 12:59:42 PM
:brokenheart;
Sir,
I am working on ColdFusion and I have to display images from a database.

1 ) My question is how do i store a image in a database?
2) how do i display it using coldfusion server &dreamweaver


Please reply me back..

C.Guruprasad
(vguruindia@yhaoo.com)
AddThis Social Bookmark Button