Hi,
I have a COM object that returns a binary image file. How can I write this to
the screen?
My best effort so far - which seems rather inelegant - is:
<cffile action = "write" file = "#expandpath("./")#image.gif" output =
"#content#">
<img src = "image.gif">
my attempt to improve on this was to have something like:
<img src = "imageMaker.cfm">
in a calling file where imageMaker.cfm calls the COM object and uses CFCONTENT
to return an image/gif type file. However, I run in to problems with this when
I attempt:
<cfcontent type = "image/gif" reset = "yes">#content#
because, of course, we cannot write binary files to the screen.
Is there anyway to do this without having to write the binary info to a file?
Those lucky people over at Microsoft can simply do:
Response.BinaryWrite content
Peter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking
application. Start tracking and documenting hours spent on a project or with a
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:206326
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54