Forum Moderators: coopster
If you're using an OS that supports the ADODB.Stream object you can do it fairly easily. There might be ways of doing it on other OSes but I'm not familiar with them.
Hope that helps. :)
[edited by: GaryK at 4:03 pm (utc) on Aug. 27, 2007]
<script>
var isReady = false;
function doSaveAs(){
if (img.document.execCommand){
if (isReady){img.document.execCommand("SaveAs", null, "peter.jpg");}
}else{
alert('This feature is only compatible with IE5+');
}
}
</script>
<iframe id='img' SRC="peter.jpg"></iframe>
<body onload="isReady=true">
<a href="javascript:doSaveAs()">
Click Here To Save This Image
</a>
</body>
there may be way to do this with setting the content-type w/ php, but im not too familar with that. maybe someone else has a beter idea for that