本帖最后由 hizone911 于 2010-06-25 10:07:56 编辑

解决方案 »

  1.   

    string address = "地址";
                string fileName = address.Substring(address.LastIndexOf("/"));
                WebClient wc = new WebClient();
                Byte[] bytes = wc.DownloadData(address);
                using (FileStream fs = new FileStream(fileName, FileMode.OpenOrCreate))
                {
                    fs.Write(bytes, 0, bytes.Length);
                }
      

  2.   

    fileName 记得自己加上存放路径~
      

  3.   

                            System.Net.WebClient wc = new System.Net.WebClient();
                            wc.DownloadFile(filepath, sfdRecord.FileName);
      

  4.   

    如果webclient取数据 一般需要Encoding.XXX.GetString(DownloadData)进行转换
    然后用FileStream存到本地 或直接对它进行正则分析