下载图片进行报告 [英] Download picture to report

查看:90
本文介绍了下载图片进行报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要提供公司产品的报告,其中照片已经在公司网站上了.我想下载这些图片并填充一个数据集,该数据集将用作报告的数据源.

I need to produce a report of company products in which the photos are on company website already.  I want to download those pictures and populate a dataset which would be used as a datasource of the report.

如何下载这些图片,以及如何知道何时完全下载所有图片?如果某些图片下载有问题,该如何处理(设置超时)?

How can I download those pictures and how to know when all pictures are completely downloaded?  If some pictures have problem in the download, how should I handle it(set timeout)?

任何建议都值得赞赏.非常感谢.

Any suggestion is appreciated.  Many many thanks.

推荐答案

您好,
我想您必须将图片下载到客户端才能生成报告.如果是这样,您可以使用System.Net.WebClient的DownloadData函数从服务器下载每个图像.然后,您可以使用逻辑将本地驱动器上的图像填充到报告中.
  I think you have to download the pictures to the client to generate the report. If so you can use System.Net.WebClient's DownloadData function to download each and every images from the server. Then you can populate the report using your logic with the images on your local drive.


这篇关于下载图片进行报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆