without them and didn't associate it to the pdf viewer. It may be something
on our end but it still happened. In actuality this will server DOC, TXT,
etc as well but that was just a preliminary piece of code.
Sorry for the word usage I have been working on byte streaming on another
project...information overload.
S
-----Original Message-----
From: Dave Watts [mailto:[EMAIL PROTECTED]
Sent: Thursday, December 04, 2003 2:11 PM
To: CF-Talk
Subject: RE: Stream PDF using CFCONTENT
> Well, I solved it...here is the code below in case anyone else
> needs to do something like this....
>
> It is not complete but it works. Need to add some param defaults
> and the such.
>
> ...
>
> <cfoutput>
> <cfcontent file="#DirectorySet##Evaluate("FileVal")#"
> type="application/pdf" deletefile="Yes">
> </cfoutput>
In my experience, this would return a PDF in its entirety to the browser.
This isn't the same as byte-serving a PDF, in which case the client receives
a page at a time.
On an unrelated note, you don't need the CFOUTPUT tags there, since you're
not outputting text to the client, and you don't need Evaluate, since you
can just refer to FileVal directly.
Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/ <http://www.figleaf.com/>
phone: 202-797-5496
fax: 202-797-5444
_____
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings]

