|Posted by:||Thomas Zangl (usen…@tzis.net)|
|Date:||Fri, 28 May 2004|
> when i`m trying to resume FTP downloading - my file is corrupted
> (downloading without resume - is ok!). why?
> PS: CBuilder6, Indy 9.0.14
Are you sure you seek to the appropriate position inside the file? How
do you write / append data to the file? I saw clients, that do a "roll
back" means they cut off the last e.g. 4 KBytes of the file and then
resumed from this position.
I would do this:
<write to file, block wise ... >
<download is interrupted>
<on resume, take the filesize - 4096 bytes, start a resume from there>
<open the file and "myfilestream.seek(4096,soFromEnd)">
TIdFTP posted by Peter on Fri, 28 May 2004