Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Saving an image from the web to a local file
Message
 
To
16/11/2001 15:48:49
General information
Forum:
Visual FoxPro
Category:
Web Services
Miscellaneous
Thread ID:
00582972
Message ID:
00583015
Views:
20
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform