Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Saving an image from the web to a local file
Message
 
À
16/11/2001 15:48:49
Information générale
Forum:
Visual FoxPro
Catégorie:
Web Services
Divers
Thread ID:
00582972
Message ID:
00583015
Vues:
21
>Can anyone help me? I am trying to save an image from the web to a local file. I have a direct link to the image on the web (ex. http://www.somesite.com/img/image01.gif) and I need to save this to a local file. Any help would be appreciated.
>Thanks,
>Brian

Brian,

The following works for me using VFP6:
Declare LONG URLDownloadToFile in urlmon as URLDownloadToFileA ;
   LONG pCaller,;
   STRING szURL,;
   STRING szFileName,;
   LONG dwReserved,;
   LONG lpfnCB

RetVal=URLDownloadToFileA(0,"http://www.somesite.com/img/image01.gif","c:\image01.gif",0,0)
For more details, have a look at MSKB article #Q244757.

HTH,
Scott
Scott King
The Support Source Corporation
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform