Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2013-01

TFPHttpClient: resume download.

5 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

silvioprog

Hello,

Some times, we need to resume a download. To do this is very easy, enough read byte by byte and continuing from the last 50KB (Chrome and Firefox works so).

So, TFPHttpClient allow to read byte by byte of a content?

Thank you!

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130123/f173d091/attachment.html>

Reply by email

Michael Van Canneyt
to silvioprog
silvioprog wrote 5 lines
Hello, Some times, we need to resume a download. To do this is very easy, enough read byte by byte and continuing from the last 50KB (Chrome and Firefox works so). So, TFPHttpClient allow to read byte by byte of a content?

No.

Michael.

Reply by email

silvioprog
to Michael Van Canneyt

2013/1/23 Michael Van Canneyt

Show quoted text 14 lines
On Wed, 23 Jan 2013, silvioprog wrote: > Hello, > > Some times, we need to resume a download. To do this is very easy, enough > read byte by byte and continuing from the last 50KB (Chrome and Firefox > works so). > > So, TFPHttpClient allow to read byte by byte of a content? > No. Michael.

Based on future implementation to "TFPHttpClient: download progress (or status)" feature request ...:

(...)
TOnProgressEvent = (Sender : TObject; BytesRead,ContentLength : Int64) of object;
(...)

...if the "Sender" is the Stream, you can resume download, saving current stream to a file. Would have to implement only one parameter for reading the stream be launched from the size of the file that has been saved to disk. (I do not know if the translator was clear in my explanation. :/ )

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130123/c75dee55/attachment.html>

Reply by email

Graeme Geldenhuys
to silvioprog: Some times, we need to resume a download. To do this is very easy, enough read byte by…

Hi silvioprog,

Please discuss FPC related topics in fpc-pascal. That way everybody interested in FPC only discussions can follow. eg: I almost missed these discussions (which I am interested in), because I auto-mark Lazarus mailing list messages as read.

Thanks,
G.

silvioprog wrote 9 lines
Hello, Some times, we need to resume a download. To do this is very easy, enough read byte by byte and continuing from the last 50KB (Chrome and Firefox works so). So, TFPHttpClient allow to read byte by byte of a content? Thank you!

Reply by email

silvioprog
to Graeme Geldenhuys

2013/1/24 Graeme Geldenhuys

Show quoted text 10 lines
Hi silvioprog, Please discuss FPC related topics in fpc-pascal. That way everybody interested in FPC only discussions can follow. eg: I almost missed these discussions (which I am interested in), because I auto-mark Lazarus mailing list messages as read. Thanks, G.

OKs. Sorry.

Silvio Cl?cio My public projects - github.com/silvioprog -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20130124/03a2ffae/attachment.html>

Reply by email