• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 307
  • Last Modified:

Download Images using perl

Hi all,
      I'm kind of familiar with perl but not yet gone deep into it... How to download images from a website. can LWP::UserAgent be used for this or is there a separate module for the purpose of images. If LWP::Useragent can be used, how to use it for getting images? 'coz I tried using it like for normal text but it did not work out.  ur help will be much appreciated. Thanx
0
subathra
Asked:
subathra
4 Solutions
 
jmcgOwnerCommented:
Yes, LWP::UserAgent can download any type of web content. Perhaps if you showed us what you tried, we could suggest how to make it right?
0
 
TintinCommented:
Depending on what you are trying to do, LWP::Simple can download images as well.
0
 
christopher sagayamCommented:
0
 
davorgCommented:
use LWP::Simple;

my $url = 'http://example.com/url/of/image.png';

getstore($url, 'image.png');
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now