in reply to Re: GD::Graph without saving file
in thread GD::Graph without saving file

OK so using binmode and the Mason way of headers (all within %init instead of %perl):

....snip... my $gd = $graph->plot(\@data) or die "Could not plot: ".$graph->error. Dumper(@data); my $img = $gd->png(); $r->content_type("image/png"); $r->send_http_header; binmode STDOUT; $m->print($img); $m->abort(OK); # make sure nothing else gets sent
Still not working.

Neil Watson
watson-wilson.ca

Replies are listed 'Best First'.
Re^3: GD::Graph without saving file
by dws (Chancellor) on Jul 08, 2004 at 00:12 UTC

    Still not working.

    If you comment out the

    $m->print($img);

    line and make the request by hand (e.g., in a telnet session to port 80), what do the headers look like?