Cold fusion code to download files (eg Word/Excel) from an FTP/WWW Site, and offer it for download.
Posted on 2004-08-31
First of all, is it possible for cold fusion to retrieve a file from an ftp/www site and then prompt the user to save/view that file from the brower? If so, can you provide brief code as an example. I have tried using the cfttp, cfftp and cfcontent tags to a limited degree of success. I can retrieve the file from the site, and also prompt the user to save the file, but it is usually garbled (looks like it has been converted into a string).
The reason behind this is to hide the original source of the files, as the source is protected and I do not wish the credentials to be hard coded into the link.