Ask a Question related to Coldfusion Database Access, Design and Development.
-
RandyWheeler #1
Display PDF Stored as OLE Object
I have an Access database that has a field defined as an OLE Object to store
PDF files. I have seen the posts related to using cffile and cfcontent but
cannot get things to work. The problem seems to be generating the pdf file
from the database. My code looks like the following:
<cfoutput>
<cffile action="write" file="Document.pdf"
output="#toBinary(mydata.myfield)#"/>
<cfcontent type="application/pdf" file="Document.pdf">
</cfoutput>
If anyone has any insight I could sure use it. And a code example would be
greatly appreciated.
Randy
RandyWheeler Guest
-
How to Display A Stored TIF Blob field in SQL Server
Does anybody know how to display a TIF blob field in SQL Server? :confused; -
object references stored in array gives me what?
I'm nervous this method is not doing what I assumed it was doing. Does it not create objects, store them in an array, and check that array to see... -
Can't display images stored as Oracle BLOBs
I have been fighting with storing/retrieving images in an Oracle database using ASP for over a month now. I have been able to store images < 64K w/... -
Unable to display stored array
In the following code snippet, I build an array called $emp_final, which I attempt to echo later on. If I uncomment the echo immediately after the... -
Net::SNMP stored in an Object
hey everyone... i've done loads of searches on the net and nothing has come up relating to the issue i have been having. is there anyone who can... -
Rick #2
Re: Display PDF Stored as OLE Object
I never store files in a database. What I do is I use a text field with a
path to the file and display it that way.
"RandyWheeler" <webforumsuser@macromedia.com> wrote in message
news:dqufvc$ki7$1@forums.macromedia.com...>I have an Access database that has a field defined as an OLE Object to
>store
> PDF files. I have seen the posts related to using cffile and cfcontent
> but
> cannot get things to work. The problem seems to be generating the pdf
> file
> from the database. My code looks like the following:
>
> <cfoutput>
> <cffile action="write" file="Document.pdf"
> output="#toBinary(mydata.myfield)#"/>
> <cfcontent type="application/pdf" file="Document.pdf">
> </cfoutput>
>
> If anyone has any insight I could sure use it. And a code example would
> be
> greatly appreciated.
>
> Randy
>
>
Rick Guest
-
philh #3
Re: Display PDF Stored as OLE Object
Take baby steps. Run just the CFFILE tag, and see if you can find the file on
the server. Use full pathing in your tags so there's no mistake about where
the file is being written to or retrieved from.
philh Guest
-
RandyWheeler #4
Re: Display PDF Stored as OLE Object
Rick,
That was my plan B. I will take your advice. Thanks.
Randy
RandyWheeler Guest



Reply With Quote

