Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Using CF to write binary

Posted on 2007-10-12
3
Medium Priority
?
840 Views
Last Modified: 2013-12-24
I need to use CF to write a binary file. I am copying from a remote server. I can copy binary with cfhttp, but I cannot write binary because cffile just does a text write.
0
Comment
Question by:DataCollab
  • 2
3 Comments
 
LVL 52

Accepted Solution

by:
_agx_ earned 2000 total points
ID: 20068417
Have you tried using the "getAsBinary"  and "path" attributes of cfhttp?


   
0
 
LVL 52

Expert Comment

by:_agx_
ID: 20068535
Cffile works fine for me

<cfhttp  method="Get"
      getAsBinary="yes"
    url="http://images.google.com/intl/en_ALL/images/images_hp.gif">

<cffile action="write" file="c:\temp\myBinaryFile.gif" output="#cfhttp.fileContent#">
0
 

Author Comment

by:DataCollab
ID: 20068628
Thanks aqx. the cfhttp worked excellently.
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Have you ever sent email via ColdFusion and thought of tracking this mail to capture the exact date and time when the message was opened ?  If yes, then this article is for you ! First we need a table user_email with columns user_id , email , sub…
Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question