>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