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

Web Servers

Avatar of undefined
Last Comment
Zvonko

8/22/2022 - Mon
Zvonko

Do you have AcrobateReader installed on that Linux client?
ASKER
nicky2k

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.
Zvonko

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.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER
nicky2k

My PC does have Acrobat.
Zvonko

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

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.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
ASKER CERTIFIED SOLUTION
Zvonko

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question