I have an event that dynamically creates an image based on values contained in the rc.So the URL could look like
Is there an easy way to return just the image to the browser from the event? Just as if you went directly to the image URL
I may be over-thinking this and missing the obvious.
cfcontent should work nicely. Of course, check out the FileUtils.cfc in coldbox/system/core/utils. It has a handy sendFile method that the CFContentMeeiaProvider uses in ContentBox that basically does everything you need.
ColdBox Platform Evangelist
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
I tried the FileUtils plugin initially but missed off the disposition parameter which meant it forced the image to download, changing this to inline, it now does exactly what I want.