• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

How to save an image from an HTTP adress

Contributor ,
Oct 14, 2008 Oct 14, 2008

Copy link to clipboard

Copied

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.
TOPICS
Advanced techniques

Views

545

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 14, 2008 Oct 14, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Contributor ,
Oct 14, 2008 Oct 14, 2008

Copy link to clipboard

Copied

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Oct 14, 2008 Oct 14, 2008

Copy link to clipboard

Copied

LATEST
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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 14, 2008 Oct 14, 2008

Copy link to clipboard

Copied

cfhttp can get the file and store it in a variable.
cffile can write that variable to disk.

when you look up these tags in the cfml reference pay attention to the
various attributes they accept.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation