Thread View: borland.public.cppbuilder.internet.socket
2 messages
2 total messages
Started by bar
Sat, 05 Jan 2008 09:00
Displaying the downloading status
Author: bar
Date: Sat, 05 Jan 2008 09:00
Date: Sat, 05 Jan 2008 09:00
28 lines
1828 bytes
1828 bytes
Hello all.
I am using Indy 9.0 and BCB 6(Pro) for downloading from HTTP server.
void Form1::DownloadFile()
{
try
{
std::auto_ptr<TFileStream> 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
Re: Displaying the downloading status
Author: Remy Lebeau (TeamB)
Date: Mon, 07 Jan 2008 17:18
Date: Mon, 07 Jan 2008 17:18
14 lines
1315 bytes
1315 bytes
"bar" <shaikakbar250281@yahoo.co.in> 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
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads