2013/1/23 Michael Van Canneyt <mich...@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
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
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to