Solved

Download JPG from url

Posted on 2008-11-01
5
238 Views
Last Modified: 2008-11-03
I would like to download a jpg from a url. How can I do this?
0
Comment
Question by:geocoins-software
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 

Author Comment

by:geocoins-software
ID: 22856948
Please include error checking - that is, the jpg image must exist before it is downloaded

thanks
0
 
LVL 12

Expert Comment

by:TK-77
ID: 22857044
1. Right-cliick on the image
2. Click Save Picture As
3. Save to the desired directoty on your PC

TK
0
 

Expert Comment

by:gonio5
ID: 22857249
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.
0
 

Author Comment

by:geocoins-software
ID: 22857766
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
0
 
LVL 13

Accepted Solution

by:
ThievingSix earned 250 total points
ID: 22871220
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

717 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question