I am using the following code to retrieve a tif image from our internal imaging
server so that I can allow Internet users to retrieve blueprint drawings that
are behind our corporate firewall.
<cfhttp method = "GET"
getasbinary="yes"
url="http://myurlname.asp?imagename"
>
<cfheader name="Content-Disposition" value="attachment; filename=myfile.tif" >
<cfcontent type="image/tiff" variable="#cfhttp.FileContent#">
This code works great except for one problem. When the Windows dialog box
opens and says "Do you want to open or save this file?" in XP professional
clicking the save button works every time. But if the Open button is clicked
we can see the file downloading to the temporary folder -- but as soon as it
finishes the file disappears. And when Microsoft Office Document Imaging (the
default viewer) launches it give an error opening document message because the
file no longer exists. This only seems to happen on XP Professional--computers
with XP Home Edition or non-XP operating systems can open the file on the fly
by clicking the open button.
Does anyone have a clue why XP is doing this? It is also putting a (1) after
the file name and the other operating systems don't do that. Is there anyway
to stop it from deleting the file so the user can open it? Thanks in advance
for any advice.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:258314
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4