You probably wouldn't want to add the link to an image/png since that
probably shouldn't work as it's not something png's should be doing. 
You'll want to output an html page and embed the image directly within
the page source if you can't output a temporary file.  Look into the
"data:" URI type which should allow you to encode the image data and
serve it as standard HTML. 

jeevs wrote:
> Hi Forum!!!
>
>   I want to plot a graph on a web page. I am using the GD::Graph
> module and can successfully plot the graph. The graph is displayed on
> the web page with the following code.
>
> ...
> ...
>         print "content-type: image/$graph_format\n\n";
>        my $img_obj = $graph->plot([EMAIL PROTECTED])->$graph_format();
>         binmode STDOUT;
>         print $img_obj;
> ...
> ...
>
> But now i need to give a link to the user to move to other page on the
> same page where the graph is displayed. This is tedious for me since I
> am not supposed to write to the server. Otherwise i could have written
> a image file and instead of using image headers, I wud have used the
> text/html header and the img tag to display the graph.
>
>   Please guide me how can I provide the link to the another page.
>
>
>   

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to