in reply to Re^3: Difficulty with using LWP to display JPEG
in thread Difficulty with using LWP to display JPEG
Roboticus - I am not on a linux machine. Does that mean WWW::Mechanize is going to be useless to me?
I managed to write some small code but I really do not know which way to go with it. Sadly, I am completely unfamiliar with mechanize so this is what I have come up with:
use strict; use WWW::Mechanize; my $url = "http://upload.wikimedia.org/wikipedia/en/7/70/Blogscope-log +o-simple.jpg"; #my $cookie_jar; my $mech = WWW::Mechanize->new(); $mech->get($url); $mech->success() or die "Can't fetch the Requested page"; my $val = $mech->content; print $val;
$val ends up being that same binary nonsense. I took a look at the Image function but it looks like that just scrapes the current page and finds all images and assigns them to an array - I am actually providing a link to the image itself so it doesn't look like that would work.
Thanks again!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: Difficulty with using LWP to display JPEG
by roboticus (Chancellor) on Apr 11, 2014 at 19:14 UTC | |
by Aquilae (Novice) on Apr 11, 2014 at 19:28 UTC | |
by roboticus (Chancellor) on Apr 11, 2014 at 21:39 UTC | |
|
Re^5: Difficulty with using LWP to display JPEG
by ww (Archbishop) on Apr 12, 2014 at 17:57 UTC |