积极答复者
c# 中向SQL写入较大image数据,如何得知传输进度及速率呢?

问题
答案
-
直接使用WebClient类从下载就好了,相当于做一个下载功能的了,你首先先在自己的项目中建立一个文件夹,例如命名为 “SampleImages”,然后往这个文件夹中写入读取到的图片就可以的,直接使用这个WebClient.DownloadFileAsync就可以了
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已建议为答案 Learning hard 2013年6月20日 3:26
- 已标记为答案 Bob ShenModerator 2013年7月2日 10:31
全部回复
-
你好,
如果你是要获取真正向数据库存数据的进度,我觉得没什么好办法
如果只是一个大概时间,可以试试
c/s结构:你可以参考这篇博客的做法:
http://www.cnblogs.com/zhangq723/archive/2012/06/26/2563882.html
关于b/s结构网上有很多例子。
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
-
直接使用WebClient类从下载就好了,相当于做一个下载功能的了,你首先先在自己的项目中建立一个文件夹,例如命名为 “SampleImages”,然后往这个文件夹中写入读取到的图片就可以的,直接使用这个WebClient.DownloadFileAsync就可以了
If my post is helpful,please help to vote as helpful, if my post solve your question, please help to make it as answer. My sample
- 已建议为答案 Learning hard 2013年6月20日 3:26
- 已标记为答案 Bob ShenModerator 2013年7月2日 10:31