Link to home
Start Free TrialLog in
Avatar of geocoins-software
geocoins-software

asked on

Download JPG from url

I would like to download a jpg from a url. How can I do this?
Avatar of geocoins-software
geocoins-software

ASKER

Please include error checking - that is, the jpg image must exist before it is downloaded

thanks
1. Right-cliick on the image
2. Click Save Picture As
3. Save to the desired directoty on your PC

TK
Try hitting the Print Screen button.
Then paste it in paint. (pressing Control + V). I am sure you know that, but sometimes the simpler it is the most difficult to come in mind.
Nothing else I could think of now. Sorry.
Thanks all, but I need a solution by code....

I found this one and it seems to work....but i will accept any other solution that works as the answer.

DownloadFile  (SourceStr, DestStr) ;


function DownloadFile(SourceFile, DestFile: string): Boolean;
begin
  try
    Result := UrlDownloadToFile(nil, PChar(SourceFile)
      , PChar(DestFile), 0, nil) = 0;
  except
    Result := False;
  end;
end;


especially one that error checks for non-existing files

thanks
ASKER CERTIFIED SOLUTION
Avatar of ThievingSix
ThievingSix
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial