K
kjhjhjhjadsasda
Hi
Im trying to grab an external image (through url) and save it locally
on the server. Im using image::grab like so:
use Image::Grab;
$pic = new Image::Grab;
$pic->url('http://groups.google.com/groups/img/groups_medium.gif');
$pic->grab;
open(IMAGE, ">$serverpath");
binmode IMAGE;
print IMAGE $pic->image;
close IMAGE;
This saves a file on the $serverpath location but it keeps being
nothing eg 0k. I remember Ive ran into this previously some time.
Any suggestions??..
Thanks!
M
Im trying to grab an external image (through url) and save it locally
on the server. Im using image::grab like so:
use Image::Grab;
$pic = new Image::Grab;
$pic->url('http://groups.google.com/groups/img/groups_medium.gif');
$pic->grab;
open(IMAGE, ">$serverpath");
binmode IMAGE;
print IMAGE $pic->image;
close IMAGE;
This saves a file on the $serverpath location but it keeps being
nothing eg 0k. I remember Ive ran into this previously some time.
Any suggestions??..
Thanks!
M