On Wed, Jul 17, 2002 at 01:44:32PM +0200, [EMAIL PROTECTED] wrote:
> I will visualize some data with the gd::graph module. How can i display the
> graphics
> on the fly with embperl.
> The statement below doesn't work because of missing binmode
> $rec_req->content_type('image/png');
> binmode STDOUT;

You don't need binmode() on Unix systems. And you probably want to output
to OUT not STDOUT in Emperl.

> print STDOUT $req->{image}->plot(\@data)->png();
> 
> This is the error message:
> [22445]ERR: 24: Error in Perl code: Can't locate object method "BINMODE"
> via package "Apache::RequestRec" (perhaps you forgot to load
> "Apache::RequestRec"?) a

Jochen
-- 
Jochen Topf  [EMAIL PROTECTED]  http://www.remote.org/jochen/  +49-721-388298


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to