Download large file from HTTP with resume/retry support in .NET?

前端 未结 3 777
心在旅途
心在旅途 2020-12-25 14:47

How to implement downloading a large file (~500MB) from HTTP in my application? I want to support automatic resume/retry, so that when connection is disconnected, my applica

3条回答
  •  情书的邮戳
    2020-12-25 15:14

    There's a Internet Download Manager support for you to handle this. Download IDMCOMAPI.zip, Then with (Tlbimp) Type Library Importer, import the file IDManTypeInfo.tlb from the extracted zip.

    cmd:

    C:\Program Files\Microsoft SDKs\Windows\v7.1\Bin\TlbExp.exe (FilePathGoesHere)\IDManTypeInfo.tlb
    

    Take note:

    1.) You should run the Command Prompt in an Administrator mode.

    2.) There are some files without resume capability.

提交回复
热议问题