Esempio n. 1
0
 public DownloadState ProcessDownload(string UrlAddress, string filename)
 {
     byte[] pageData;
     //m_objFile = new System.IO.FileInfo(sPath);
     try
     {
         pageData = WebDataProvider.GetUrlByteData(UrlAddress);
     }
     catch
     {
         pageData = new byte[0];
     }
     return(ProcessDownload(pageData, UrlAddress, filename));
 }
Esempio n. 2
0
        //System.IO.FileInfo m_objFile;

        public UrlInformation(string sUrlPath)
        {
            byte[] data;
            //m_objFile = new System.IO.FileInfo(sPath);
            fUrlPath   = sUrlPath;
            fCreatTime = DateTime.Now;
            try
            {
                data = WebDataProvider.GetUrlByteData(sUrlPath);
            }
            catch
            {
                data = new byte[0];
            }
            fStream = new MemoryStream(data);
        }