Skip to main content
Participant
July 21, 2006
Answered

Get PDF from another site

Hi,
does anyone know how to get a pdf file from another site?
Width cfhttp I am able to obtain the content of the pdf but when a try to write it

<cffile action="WRITE" file="#myFileName#" output="#CFHTTP.FileContent#">

on my pc I obtain a not readable PDF file.

Same result width

<cfdocument FORMAT="pdf">#CFHTTP.FileContent#</CFDOCUMENT>.


Can anyone help me, please?
Bye
This topic is closed to new replies. Start a new post to keep the conversation going.
CFcippaCorrect answer
Participant
July 21, 2006
TNKS so much, now it works.

Have a nice weekend.

Bye

3 replies

BKBK
Community Expert
Community Expert
July 21, 2006
!
Translate
BKBK
Community Expert
Community Expert
July 21, 2006
Add the attribute getAsBinary="yes" to the cfhttp tag.

Translate
CFcippaAuthorCorrect answer
Participant
July 21, 2006
TNKS so much, now it works.

Have a nice weekend.

Bye
Translate