At 11:38 AM 6/5/2001 -0500, Jeff Davis wrote:
>I'm using LWP to fetch an image and attempting to save it locally.
>The file is successfully created, however all it contains is:
>
>HTTP::Response=HASH(0x8380464)
>
>
>Here's the code snippet:
>
> $file = "/home/images/$name";
> open(IMAGE, ">$file") || die "unable to open filehandle $file \n";
binmode(IMAGE); #works with text, maybe it will work with images as
well??
> $saveres = $ua->request(HTTP::Request->new(GET => $pic));
> print IMAGE "$saveres";
>
Not ever having used images, I'd be interested in knowing if this works.
Hopefully it does.
Take care.