Author: KhaledTM | Posted on: 7/21/2008 4:38:52 AM | Views : 397

Dear all,

I want to download a file on FTP server to the client computer

I am using the following code to download files from my server(localhost) but I can not download them if they are on FTP server(shared drive: Ex. FTP://myFTP/myfile.txt)

Response.ContentType = "application/octet-stream";
Response.AddHeader("Content-Disposition", "attachment; filename=" + FileName); Access
Response.WriteFile(FilePath);

Regards,

 KhaledTM

 
...

Go to the complete details ...