I am hoping someone can shine some light on a problem I am having with
serving an image through cfcontent on a web page. I am using a CF5 server
(all hotfixes applied) and doing some image manipulation (adding text) to an
image. The back end image manipulation works fine (using Juka Manor's
CFX_image) and I am serving the image through CFcontent within the <img>
tag on the page.
<IMG SRC="image.cfm?img=#PreviewImage#" border="2">
The image.cfm file at its basic is:
<cfsetting enablecfoutputonly="Yes" showdebugoutput="Yes">
<CFHEADER NAME="Pragma" VALUE="no-cache">
<CFCONTENT TYPE="image/jpeg" DELETEFILE="Yes"
FILE="#Expandpath('#ImageTemppath##img#')#">
<cfsetting enablecfoutputonly="No" showdebugoutput="Yes">
This all works perfectly with and IE browser. However when I use a Firefox
browser it works once then when submitted again (user makes changes) the
resultant page is pure text display of the HTML code. It also does not
delete the temp image on the server. If I refresh the page it works again
(creating a new temp image - then deleting it) but a new submission and it
shows the HTML code in text again. This is 100% repeatable. However if I
set the DELETEFILE attribute of the cfcontent tag to "NO" it works in
firefox as it does in IE every time.
What am I doing wrong? How can I serve the temp image to firefox and delete
it? Is it me or am I going crazy?
Dennis Powers
UXB Internet
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:322112
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4