Hi Ben,
They are written out to a file and then the IMG Src points to that file.
I will attach code.
***This is the code that Fetches the Record containing the data that
needs to be written out.
<cfquery name="getEngImg" datasource="AODDV">
SELECT Image, FileName
FROM DocVault
WHERE DocVault_Rec = #DocDetails.E_DocVaultRec#
</cfquery>
*** This writes the image out
<CFFILE action="WRITE"
file="#GetDirectoryFromPath(GetCurrentTemplatePath())#
GI\#SESSION.auth.CompanyRec#_#getengimg.filename#"
output="#toBinary(getEngImg.Image)#"
addnewline="No" >
*** This Displays the Image
<img
src="GI/<cfoutput>#SESSION.auth.CompanyRec#_#getEngImg.FileName#</cfoutp
ut>" >
--
David Hind-Smith | president
___________________________________
://hind-smith.com
-----Original Message-----
From: Ben Nadel [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 11:09 AM
To: CF-Newbie
Subject: RE: Displaying images issues
How are you trying to display them? Do you write them to a file then
point the SRC? Or does the SRC point to a CFM page that serves up the
binary?
.......................
Ben Nadel
Certified Advanced ColdFusion MX7 Developer www.bennadel.com
Need ColdFusion Help?
www.bennadel.com/ask-ben/
-----Original Message-----
From: David Hind-Smith [mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 14, 2007 10:52 AM
To: CF-Newbie
Subject: Displaying images issues
Hi all,
I'm wondering if anyone has experienced or can point me in the right
direction.
We have a series of about 4000 images stored in a database (not a
reference to a file location, but like a BLOB) all in JPG format and are
using CFMX7/IIS 6.0 to display them on the web.
In some cases an image will display perfectly.
In some cases between 10-80% of the image won't display.
Its not an image size issue. In some cases a 2MB image will display
fine, while a 60K image gets truncated.
Any ideas?
Many thanks,
David
--
David Hind-Smith | president
___________________________________
://hind-smith.com
2156 Glenfield Road
Oakville, ON L6M 3S6
tel. 416.234 .6406 x111
toll free. 1.866.892.1727
fax. 416 .231 .0311
[EMAIL PROTECTED]
www.hind-smith.com
Customized Software for Ad and Creative Agencies.
See the possibilities at our new www.jobtracksoftware.com site.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Upgrade to Adobe ColdFusion MX7
Experience Flex 2 & MX7 integration & create powerful cross-platform RIAs
http:http://ad.doubleclick.net/clk;56760587;14748456;a?http://www.adobe.com/products/coldfusion/flex2/?sdid=LVNU
Archive:
http://www.houseoffusion.com/groups/CF-Newbie/message.cfm/messageid:2549
Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15