[Lazarus] TFPHttpClient: resume download.
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:
>> 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?
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. :/ )
My public projects - github.com/silvioprog
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Lazarus