I figured this out by doing:

<cfcontent type="image/png" variable="#image#">

-----Original Message-----
From: Tony Bentley [mailto:[email protected]] 
Sent: November-03-09 3:33 PM
To: cf-talk
Subject: Re: Return an image from a CFC directly to an img src tag


Return the image source dynamically. Get the source in your cfc, then invoke
the cfc's method and use the method call as your var.
<cfscript>
img = createObject("component","imagecfc");
</cfscript>
<cfoutput>
<img src="#img.getSource()#">
</cfoutput>





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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:327974
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to