Nevermind had a Acrobat Reader install acting up for some
reason. Reinstall
seems to have fixed it.
Thanks Again for all the help Ian!
--
Bryan Ashcraft (remove brain to reply)
Web Application Developer
Wright Medical Technologies, Inc.
------------------------------------------------------------------
Macromedia Certified Dreamweaver Developer
Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
"Bash **AdobeCommunityExpert**"
<bashcraft@wmtBRAIN.com> wrote in message
news:e93hh6$m1b$1@forums.macromedia.com...
> Apparently this is an IE issue as it works fine FF.
>
> --
> Bryan Ashcraft (remove brain to reply)
> Web Application Developer
> Wright Medical Technologies, Inc.
>
------------------------------------------------------------------
> Macromedia Certified Dreamweaver Developer
> Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
>
>
> "Bash **AdobeCommunityExpert**"
<bashcraft@wmtBRAIN.com> wrote in message
> news:e93fdq$jfs$1@forums.macromedia.com...
>> Apparently these servers just don't like me. I get
the binary data dumped
>> on the page using your method.
>>
>> Basically I get a lot of this stuff:
>>
>> %PDF-1.2 %?? 12 0 obj << /Length 13 0 R
/Filter /FlateDecode >> stream
>> H?????????%=??6$Y`'??`gl??? ???\V????
>> TF??=O??2#fS??(?X?o??1#???&k????z?@v
>> ?'?8??5`qo!.?=??7???+????????Rf??
>> ????h?????�f?w??L!????????2{WwU??
\??fkB???]???!????? iw??]???Cg?
>> ?? sf???;?P???0????~Ig3h??
>>
>> --
>> Bryan Ashcraft (remove brain to reply)
>> Web Application Developer
>> Wright Medical Technologies, Inc.
>>
------------------------------------------------------------------
>> Macromedia Certified Dreamweaver Developer
>> Adobe Community Expert (DW) ::
http://www.adobe.com/communities/experts/
>>
>>
>> "Ian Skinner" <ian.skinner@bloodsource.org>
wrote in message
>> news:e9196n$rj2$1@forums.macromedia.com...
>>> Well if one tries hard enough one can do most
anything. The following
>>> code is serving up PDF files from a web service!
For some reason, I
>>> could not get this to work by sending the data
directly to the client
>>> with the cfcontent tag, but by writing the data
to a temp file and then
>>> sending that file to the client with cfcontent
worked.
>>>
>>> Hopefully you can build on this to solve your
problem.
>>>
>>> fileServing.cfm
>>> ---------------
>>> <cfset myFile="test.pdf">
>>>
>>> <cfheader name="Content-Type" value="pdf">
>>> <cfheader name="Content-Disposition"
value="attachment;
>>> filename=#Myfile#">
>>>
>>> <cfset testObj = createObject("webservice",
>>> "
http://playground/probono/fileServing.cfc?wsdl")>
>>>
>>> <cffile action="write"
file="g:\playground\probono\tempServe.pdf"
>>>
output="#BinaryDecode(testObj.serveFile(myFile),'Base64')#"
>>> addnewline="No" >
>>>
>>> <cfcontent type="application/pdf"
>>> file="g:\playground\probono\tempServe.pdf"
reset="no">
>>>
>>>
>>> fileServing.cfc
>>> ---------------
>>> <cfcomponent>
>>> <cffunction name="serveFile" access="remote"
returntype="string">
>>> <cfargument name="fileToServe" required="yes"
type="string">
>>>
>>> <cfset var fileObj = "">
>>> <cfset var returnVar = "">
>>> <cfset var file = "">
>>>
>>> <cffile action="readBinary"
>>>
file="g:\playground\probono\#arguments.fileToServe#"
variable="fileObj">
>>> <cfset returnVar =
binaryEncode(fileObj,"Base64")>
>>>
>>> <cfreturn returnVar>
>>> </cffunction>
>>> </cfcomponent>
>>
>>
>
>