Skip to main content
Inspiring
October 14, 2008
Question

How to save an image from an HTTP adress

  • October 14, 2008
  • 1 reply
  • 637 views
I want to save to my HardDisk an image which adress is for example :
http://www.mysite.com/img/myimage.jpg

I cannot use CFFTP, and CFFILE does not allow HTTP adress,
It should be something like CFFILE but on HTTP protocole ?

Thanks for any help,
Pierre.
This topic has been closed for replies.

1 reply

Inspiring
October 14, 2008
plarts wrote:
> I cannot use CFFTP, and CFFILE does not allow HTTP adress,
> It should be something like CFFILE but on HTTP protocole ?
>
So how about the <CFHTTP...> tag then?

The documentation on your system or the intranet has all the details.
plartsAuthor
Inspiring
October 14, 2008
CFHTTP allow me to get the HTTP file and display the image on my screen,
but cannot save it on the HardDisk.
The only tag manipulating files is : CFFILE, but it asks for an adress like : c:\localdirectory\
in an <input type="file"> tag.
Thanks, Pierre.
Inspiring
October 14, 2008
plarts wrote:
> CFHTTP allow me to get the HTTP file and display the image on my screen,
> but cannot save it on the HardDisk.

Yes, it can. Did you look at the documentation as suggested. Specifically the file and path attributes?

http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=Tags_g-h_09.html