Working with an image from an http request



I'm using jpgraph on our webserver to create graphs.
I'm using LWP::Simple to fetch the graph, which is in PNG format.
My get() command:

my $graph_image = get($http_request_string);

$graph_image at this point is a string, with a PNG-looking header.

I basically just want to display the image on-screen. Can I do anything
useful with this in-memory, or do I have to save it to a temporary file
and then load it via:

$widget = Gtk2::Image->new_from_file ($filename)

-- 
Daniel Kasak
IT Developer
NUS Consulting Group
Level 5, 77 Pacific Highway
North Sydney, NSW, Australia 2060
T: (+61) 2 9922-7676 / F: (+61) 2 9922 7989
email: dkasak nusconsulting com au
website: http://www.nusconsulting.com.au



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]