Link to home
Start Free TrialLog in
Avatar of nicky2k
nicky2kFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Quick CFContent Question on CFMX 7

The following code displays the relevant PDF file in a browser on a Windows OS, but not on LInux. Does anyone have a fix for Linux? Or some 'all round' method of doing this? Nice quick easy points.


<cffile action = "readbinary" 
			file = "#session.pdfpath##fileName#" 
			variable = "thisPDF">
		
<CFCONTENT file="#session.pdfpath##fileName#" deletefile="no" type="application/pdf">

Open in new window

Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Do you have AcrobateReader installed on that Linux client?
Avatar of nicky2k

ASKER

Good question. I need to ask the guys who work onthat server as I don't manage it myself. That might just be the solution.
Server? No need for reader on server. The browser pc needs AcrobateReader. The CF server machine does send only the MIME string for the content. The content is displayed by the browser application.
Avatar of nicky2k

ASKER

My PC does have Acrobat.
My too ;-)
So I understood you have two CF servers and one browser client. That is grand totla three PC machines, right?
Avatar of nicky2k

ASKER

The code can be accessed form any PC, so forget the PC for now.  What we have is a development server, that hosts the code on Windows and a Test server that hosts the code on Linux.
ASKER CERTIFIED SOLUTION
Avatar of Zvonko
Zvonko
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial