WebClient wc = new WebClient(); wc.Credentials = CredentialCache.DefaultCredentials; byte[] btPageData = wc.DownloadData("http://www.baidu.com/img/bd_logo1.png"); string strTargetHtml = Encoding.Default.GetString(btPageData); wc.Dispose();