><cfcontent....> can server up any type of web content including image 
>files.  You would just put the name of the cfm template that contains 
>the <cfontent....> tag into the <img href="..."> property.  Then the 
><cfcontent...> tag would server up the image file from the secure 
>location with the proper image mine type.

Thank you all for your replies.
Well I can't do anything in web server level because it's a hosted site.
So I have to solve the problem in CF code level.

About Ian's idea on using <img href="..."> I did the simple test below.

I did simple cfm page in web site root folder e.g. C:\MySiteRoot\test.cfm.
In Test.cfm among text etc I put <img href="image.cfm">
In the same folder I made an image.cfm page and there I wrote only the 
cfcontent tag below

<cfcontent type = "image/jpeg" file = "#ExpandPath('pic.jpg')#" deleteFile = 
"No" reset="no">

In the same folder I placed the photo pic.jpg.
So totally I have 

C:\MySiteRoot\test.cfm
C:\MySiteRoot\image.cfm
C:\MySiteRoot\pic.jpg

When I call the page http://www.MySite.com/test.cfm I see the test page but not 
including the pic.jpg.

I think Ian's idea is correct because I saw something similar in Adobe's site 
in the page below

http://kb2.adobe.com/cps/405/kb405330.html

I also did exactly what Adobe says but I don't see the image.
Is something missing in test.cfm or image.cfm ?

Thank you again for your help.




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Want to reach the ColdFusion community with something they want? Let them know 
on the House of Fusion mailing lists
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:324254
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to