The method I have used in the past goes something like this...
index.cfm
----------
<img src="picture.cfm">
----------
picture.cfm
----------
<cfcontent file="E:\Web Design\Clients\cfcontenttest\logo.gif"
type="image/gif">
----------
You can then use any path you like in the file attribute of the cfcontent
tag to push a picture from a non-web-accessible directory. It can be
dynamic as well if you choose, for example
<img src="picture.cfm?picture=1">
all the user will see as the image name is "picture.cfm?picture=1".
I am sure if you wanted you could use
<img src="picture.cfm?picture=#encode('logo.gif', 'mykey')#">
and really confuse the viewer :-)
Hope this gives you a start in the correct direction.
----- Original Message -----
From: "Stewart McGowan" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Friday, September 29, 2000 4:39 PM
Subject: RE: Protecting Content / content leeching... A CF method?
> "problem is that CF mappings, as far as I know, do not work with the IMG
> tag, let alone the EMBED tag"
>
>
> setup global variable with a mapping then use in the img tag, that works
> fine....
>
> <CFSET application.root_path="datanet">
> <CFSET application.image_path="#application.root_path#/Images/">
>
> <IMG name="menu"
> src="<CFOUTPUT>#application.image_path#/</CFOUTPUT>menu.gif" width="600"
> height="65" border="0" usemap="#m_menu">
>
>
> and now i really am off :)
>
> Stew
>
>
>
> --------------------------------------------------------------------------
----
> Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
> To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.