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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Make an image 'saveable' method

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
There is a problem which I haven't been able to solve yet. Sounds somehow profane, because everyone saves an image by 'right click / save image as' or 'save link as' or whatever but I thought that there has to be a way to create a button which opens the standard save as dialog to save an image to your local filesystem.

I've actually tried to trick out the browsers file extension to mime-type relation by using a cf template which is 'faked' as .jpg image (.jpg extension mapped to cfserver in that folder) including a
Code:
<cfcontent type=&quot;whatever you might assume..&quot;  ...>
tag.
Don't need to mention that this doesen't work... :-(

So perhaps there's a server side trick to manage this problem or maybe some JScript, Javascript, or VBscript system call function to evoke a save as dialogue on a client side basis (the dialogue box should also display the filename correctly as jpg or gif or whatever).

I would be very thankfull if there's anyone who has at least an idea of which way to go next. I'm running low with possible ways to solve this prob.

ThanX
 
Hi Ashphegor,

This pops up the &quot;save-as&quot; dialog on my browser.

<cfcontent type=&quot;application/zzz&quot; ...>

If you've mapped &quot;.jpg&quot; extensions to be processed by CF, then I think this will do what you want.

Let me know if you have problems,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top