Mega Search
23.2 Million


Sign Up

Make a donation  
Displaying the downloading status  
News Group: borland.public.cppbuilder.internet.socket

Hello all.

I am using Indy 9.0 and BCB 6(Pro) for downloading from HTTP server.

void Form1::DownloadFile()
{
    try
    {
        std::auto_ptr strm(new 
TFileStream("C:\\test.log",fmCreate));
        HTTP->Request->Pragma = "no-cache";
        HTTP->HandleRedirects = true;
        HTTP->Get("http://www.abc.com/~webtest/tests/test.log", strm.get());
    }
    catch(const Exception &E)
    {
           ShowMessage("Download function:\n"+E.Message);
    }
}

TldHTTP component is created at design time.
The size of the file is 3 MB, the download is working fine.
I need to show the details Data Trasfer Rate, Total Size of File Downloading 
And Number of Bytes Downloaded, like IE shows while downloading.
I really appreciate for the suggestions.

Thanks
SA 



Vote for best question.
Score: 0  # Vote:  0
Date Posted: 5-Jan-2008, at 12:00 PM EST
From: bar
 
Re: Displaying the downloading status  
News Group: borland.public.cppbuilder.internet.socket
"bar"  wrote in message 
news:477f4728@newsgroups.borland.com...

> I need to show the details Data Trasfer Rate

You need to calculate that manually.

> Total Size of File Downloading And Number of Bytes Downloaded

Assign handlers to the OnWork... events.


Gambit 



Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 7-Jan-2008, at 9:18 AM EST
From: Remy Lebeau \(TeamB\)