develooper Front page | perl.beginners | Postings from March 2002

FW: Save image to disk

Thread Next
From:
Gary Hawkins
Date:
March 14, 2002 18:09
Subject:
FW: Save image to disk
Message ID:
LOBBIJFNBAGIOILLFAIBEENHNMAA.ghawk@eskimo.com
Worked fine on the remote system, but, can someone give me the ppm install ...
<url> line to install LWP::Simple?

> -----Original Message-----
> From:
> Sent: Thursday, March 14, 2002 8:16 AM
> To: 'Gary Hawkins'
> Subject: RE: Save image to disk
>
>
> It looks like you didn't get a straight answer.  You can use LWP::Simple to
> fetch the image, then can save it to disk.
>
> use LWP::Simple;
>
> my $img = get("http://someplace.com/images/foo.gif");
>
> open OUT, "> foo.gif" or die $!;
> binmode OUT; # only needed on Windows (I think)
> print OUT $img;
> close OUT;
>
>
>
> Would like to save images to disk using their URL's.  Hoping someone can
> give
> me a jump start on it.
>
> Gary
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> --
> To unsubscribe, e-mail: beginners-unsubscribe@perl.org
> For additional commands, e-mail: beginners-help@perl.org
>


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About