Gavin,
Try putting in getasbinary = "YES" in your CFHTTP tag.
Or maybe it IS supposed to be a fuzzy black and white image :-)
 
Regards: Ayudh
 
+----------------------------------------------------------------+
| SOAP is the glue! Hook up your server directly to your bank.   |
| Connect to VeriPay xServ, the Australian Payments Web Service. |
| Reliable, Secure, FAST: http://www.xilo.com/xserv              |
+----------------------------------------------------------------+
----- Original Message -----
Sent: Tuesday, December 09, 2003 3:27 PM
Subject: [cfaussie] cfhttp/ cffile for images

Hi all,
 
I'm trying to retrieve a list of images (gifs, jpegs, pngs) from a webserver and save them to my harddrive. At the moment the images, when opened on my hard drive, are black and while fuzz... like a TV station that is not tuned in.
 
<cfoutput query="ONLINE_QUESTIONS">
 <cfif len(image_link) gt 0>
 <cfhttp url="">
 </cfhttp>
 <p><strong>Getting:</strong> #application.online_question_image_location##IMAGE_LINK#</p>
 <cffile action="" output="#cfhttp.fileContent#" file="#MCQ_FOLDER#\images\#IMAGE_LINK#">
 </cfif>
</cfoutput>
 
An example of the image i'm trying to download:
 
 
Should I add a character set? or is there something else i should do when using CFFILE to write images?
 
Thanks
 
Gav
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004
---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
MXDU2004 + Macromedia DevCon AsiaPac + Sydney, Australia
http://www.mxdu.com/ + 24-25 February, 2004

Reply via email to