| | |
| | | using System; |
| | | using System.IO; |
| | | using System.Collections.Generic; |
| | | using Newtonsoft.Json; |
| | | using Newtonsoft.Json.Linq; |
| | | using Shared; |
| | | //using HDL_ON.UI; |
| | | using HDL_ON.DAL.Net; |
| | | using HDL_ON.DAL; |
| | | using HDL_ON.Entity; |
| | | |
| | | namespace HDL_ON |
| | | { |
| | |
| | | FileStream fs = null; |
| | | try |
| | | { |
| | | HDL_ON.DAL.Net.MyWebClient webClient = new HDL_ON.DAL.Net.MyWebClient(); |
| | | MyWebClient webClient = new MyWebClient(); |
| | | byte[] recevieBytes = webClient.DownloadData(new Uri(url)); |
| | | fs = new FileStream(fileName, FileMode.Create, FileAccess.Write); |
| | | fs.Write(recevieBytes, 0, recevieBytes.Length); |