Are you deleting the image after it is displayed? Or do you overwrite it each time or what? What happens if you try to access the broken image directly in the URL?
...................... 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 12:11 PM To: CF-Newbie Subject: RE: Displaying images issues 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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:2550 Subscription: http://www.houseoffusion.com/groups/CF-Newbie/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
