Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Maximum File size
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01577668
Message ID:
01577812
Vues:
66
>Windows API InternetSetFilePointer is apparently able to operate with larger files provided both lDistanceToMove and lpDistanceToMoveHigh parameters are used.
>
>The InternetSetFilePointer is expected to work in pair with InternetReadFile API function. The latter does have the 32-bit limit -- i.e. it cannot read beyond 0x100000000 bytes in one call. But after reading one large chunk of data, the calling process can always use the InternetSetFilePointer to move to the beginning of the subsequent chunk.
>
>I assume that with multi-threading available -- unfortunately not VFP case -- the calling process can start several threads, each reading a portion of a large remote file, eventually assembling them in a single local file.

I remember from slower internet times FTP programs to open many channels to download large files through varios routes. Just makes sense and was what was hinting at that URLDownloadtoFile might not be the best candidate for huge files ;-)
>
>VFP code sample Using InternetSetFilePointer when resuming interrupted download from the Internet

Haven't read it (no customer of yours), but if entails what I envsion, adding implemetations va Parallellfox or at least one other vfp MT/MP approach might be useful.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform