使用类中的DownloadData方法WebClient:
byte[] imageData;
using (WebClient client = new WebClient()) {
imageData = client.DownloadData(url);
}
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1327 次 |
| 最近记录: |