我是參考微軟msdn的寫法
string remoteUri = "我的server位址";
string fileName = "我想要給人下載的檔案", myStringWebResource = null;
WebClient myWebClient = new WebClient();
myStringWebResource = remoteUri + fileName;
myWebClient.DownloadFile(myStringWebResource, fileName);
如果是文件檔或是圖片檔的話,下載是沒問題的
但是如果是exe檔的話,會出現 遠端伺服器傳回一個錯誤: (404) 找不到。
請問問題在哪?
麻煩各位大大給我指點一下....感恩
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.113.51.82