There's also anonymous FTP. Create an anonymous FTP account and link to the image using an FTP path:
ftp://www.yourdomain.com/path/to/image
If you don't have anonymous FTP capability then a server-side language is the best solution.
PHP:
Code:
<?php
header("Content-type: image/jpeg");
header("Content-Disposition: attachment; filename=proposedFileName.jpg");
readfile('image.jpg');
?>
ASP:
Code:
Dim sFullFileName
sFullFileName = "C:\image\path\image.jpg"
Response.Contenttype="image/jpeg"
Response.Addheader "Content-Disposition", "attachment; filename=" & chr(34) & sFileName & chr(34)
Response.Binarywrite GetBinaryFile(sFullFileName)
Function GetBinaryFile(ByVal sFileSpec)
Const adTypeBinary = 1
Dim objStream
Set objStream = Server.Createobject("ADODB.Stream")
objStream.Open
objStream.Type = adTypeBinary
objStream.LoadFromFile sFileSpec
GetBinaryFile = objStream.read
Set objStream = Nothing
End Function
I don't know which version of ASP this is.. I lifted the code from one of Imar's replies.
HTH!
Regards,
Rich
::::::::::::::::::::::::::::::::::::::::::
The Spicy Peanut Project
http://www.spicypeanut.net
::::::::::::::::::::::::::::::::::::::::::