Solved

Making a download manager

Posted on 2003-11-09
4
294 Views
Last Modified: 2013-12-03
I want to make a download manager type thing, a simple one.
I want it to be able to download at least 3 files at the same time and show the progess in a progess bar along with the time it will take, download rate.
And most importantly to be able to pause it and resume and stop the download.
I was able to download a file of the internet but i didnt have any download rate and time it will take and i couldnt find how to pause/resume/stop it.
I would appreciate source codes.
0
Comment
Question by:gigazer
4 Comments
 
LVL 6

Accepted Solution

by:
DaFox earned 50 total points
ID: 9711439
Hi,

take a look at this project (comes with full source code) -> http://codecentral.borland.com/codecentral/ccweb.exe/download?id=17604

It's a multithreaded download manager that is able to start/stop/pause/resume downloads. Downloads the files with multiple streams, gets the correct file size and calculates the remaining time.

It's a very good coded project (see the votes!).

Best regards,
Markus

PS: BTW, it's using the Indy components.
0
 
LVL 5

Assisted Solution

by:DeerBear
DeerBear earned 50 total points
ID: 9712949
Hi,

Along with the suggested project, you should take a look at the
Indy components.

The basic idea for download time is that you have to sample out some data and times and
make the appropriate calculations( if I got W bytes in X time, then in Y time I'll get Z bytes ).

As to resume/pause download, I would *guess* that you
should keep track of the file position and issue it when starting to download.

The main problem in this area is that the server MUST support resuming and not all of
them do.

My 2c.

HTH,

Andrew
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

939 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question