[Lazarus] TFPHttpClient: resume download.

silvioprog silvioprog at gmail.com
Wed Jan 23 20:40:51 CET 2013

2013/1/23 Michael Van Canneyt <michael at freepascal.org>

>  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

...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-ide.org/pipermail/lazarus/attachments/20130123/c75dee55/attachment-0003.html>

More information about the Lazarus mailing list