?
Solved

Download JPG from url

Posted on 2008-11-01
5
Medium Priority
?
239 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 1000 total points
ID: 22871220
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

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 my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
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.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses
Course of the Month13 days, left to enroll

777 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