1. 程式人生 > >c# WebClient 下載遠端圖片--超簡單

c# WebClient 下載遠端圖片--超簡單

 
     /// <summary>
        /// 下載圖片
        /// </summary>
        /// <param name="Url">Url地址</param>
        /// <param name="Path">儲存路徑</param>
        public void DownImage(string Url,string Path)
        {
            System.Net.WebClient web = new System.Net.WebClient();
            web.DownloadFile(Url, Path);

        }