Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Andrzejek on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Saving Dynamic Graphics

Status
Not open for further replies.

izachar

Technical User
Oct 7, 2000
84
CA
I am using a tool to create dynamic graphics (gif). They display in the browser correctly but now I would like to save them to the local machine. Is there any tag that will allow me to take a graphic from a web page and save it locally?

Thanks
 
No... an web application server, by design and by technical limitations, is prevented from saving anything to the client's hard drive (thank goodness!).

You would need to write or buy a custom control (probably ActiveX) that would do it for you... you'd embed or otherwise call the control from your ColdFusion page... but the user would have to accept the control (by indicated they wish to download the code in a pop-up dialog) before they'd be able to accept the graphic. And, depending on which technology you choose to use (ActiveX or something else), you may build yourself into some browser and platform dependency issues.

-Carl
 
Or... by "local machine"... did you mean the server running ColdFusion??

-Carl
 
I am creating dynamic graphics using Macromedia Generator. I can display these images in a web page in a gif or jpeg file. I would like to be able to save them on the server in that format. This is called off line generation I can do it in a command line but I would like to use the capabilities to generate 180 of these by a press of a button
 
I've never used Generator. How do you call the images into your webpage?

If it's something like:
Code:
<img src=&quot;someGeneratorURL\someGeneratorImageName&quot; ...>

you could use CFHTTP to GET that same URL, then use CFFILE to write out the contents if CFHTTP.FileContent... maybe.
-Carl
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top