perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jochen Topf <joc...@remote.org>
Subject Re: Antwort: Re: Display GD graphics with embperl
Date Wed, 17 Jul 2002 12:46:26 GMT
Browser OS doesn't matter, only the server. No idea why you get the error,
but just get rid of the binmode and it should work.

On Wed, Jul 17, 2002 at 02:34:49PM +0200, wolfgang--onsys.leideck@basf-ag.de wrote:
> Uuh sorry i forgot,
> apache is running on a unix machine (hpux) and the browser is running on a
> windows
> host.
> With earlier versions of embperl (1.x), modperl (1.x) and apache (1.x) it
> works.
> 
> Wolfgang
> 
> 
> 
> 
> Jochen Topf <jochen@remote.org> am 17.07.2002 14:20:04
> 
> An:    Wolfgang--ONSYS Leideck/BASF-AG/BASF@EUROPE
> Kopie: embperl@perl.apache.org
> Thema: Re: Display GD graphics with embperl
> 
> 
> 
> On Wed, Jul 17, 2002 at 01:44:32PM +0200,
> wolfgang--onsys.leideck@basf-ag.de 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  jochen@remote.org  http://www.remote.org/jochen/
> +49-721-388298
> 
> ------------------------------------------------------------------------
> Wolfgang Leideck
> ONSYS GmbH
> Fon: +49 (0)621/60-44104
> Fax: +49 (0)621/60-73744
> E-Mail: Wolfgang.Leideck@onsys.de
> 
> 
> 
> 

-- 
Jochen Topf  jochen@remote.org  http://www.remote.org/jochen/  +49-721-388298


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message