如何在c#中恢复下载文件 [英] how to resume download file in c#
本文介绍了如何在c#中恢复下载文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个下载程序,当我下载文件时,我点击暂停并关闭程序,我想在打开程序时恢复下载
我该怎么办?
i have a download program and when i downloading a file i click pause and close program and i want when open the program it resume that download
how can i do it?
推荐答案
学习以下教程
MyDownloader:多线程C#分段下载管理器 [ ^ ]
下载可以完成块,这样就可以保存当前的状态了重新下载时从那里下载并继续。
study below tutorial
MyDownloader: A Multi-thread C# Segmented Download Manager[^]
download can be done chunks, so you can save the current state of the download and resume from there when restart the download.
我提供了使用此功能下载的近乎最小HTTP的完整代码。这只是一个C#文件:如何从互联网上下载文件 [ ^ ]。
你没有提到协议。如果这不是HTTP,请告诉我们。
-SA
I provided a complete code of nearly minimal HTTP downloaded with this feature. This is just one C# file: how to download a file from internet[^].
You did not mention the protocol though. If this is not HTTP, please let us know.
—SA
这篇关于如何在c#中恢复下载文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文