I want to include an image file that is on a server at another location.
If no image exists, I want to display a message stating "No Image
Available".  I had it working fine for local images..here's the code:

<cfset ImageFile = "d:\webroot\images\" & #Trim(sku)# & ".gif">
<cfif #FileExists(#ImageFile#)#>
<CFSET DisplayImage = "http://server.com/images/" &  #Trim(sku)# &
".gif">
<IMG SRC= "#DisplayImage#">
<cfelse>
No Image Available
</cfif>

How do I do that seam test for a remote server that I'm accessing via
HTTP (I have permission to use their image files)?  Would I do something
with CFHTTP and then test for a valid image response?

Thanks!

John
www.cornells.com


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to