Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FTP crash recovery
Message
De
13/09/1999 21:57:07
 
 
À
21/08/1999 14:19:50
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00256278
Message ID:
00264305
Vues:
21
I know its been a little while since you posted your original message. So if you are still interested in a FTP crash recovery solution, I will mention one.

I wrote the FTP Class that is listed in the Files Section under Internet Applications. Right now, the FTP Class just downloads a complete file. The FTP Class can be modified to download a file from a FTP Server just like reading a file with low level file commands.

Meaning that you can start downloading at the beginning of a file and read (n) bytes. The read will return how many bytes were received from the server. So you can read small chunks of data and then test the connection and how many bytes were received. If everything is fine, you repeat the loop until the file is downloaded. If the transfer is stopped in the middle, you can store what you have received and restore the connection, then do a seek to the stop point and append the rest.

Good luck.

Rob.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform