geocoins-software
asked on
Download JPG from url
I would like to download a jpg from a url. How can I do this?
1. Right-cliick on the image
2. Click Save Picture As
3. Save to the desired directoty on your PC
TK
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.
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.
ASKER
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks