On Tue, 11 Apr 2000, Roca, Ignasi wrote:

> I'm using mod_perl-1.21 and testing GD-1.25.
> 
> When calling any of the demos examples given by GD-1.25 I have the error
> 
> "Can't locate object method BINMODE via package Apache".
> 
> The perl scripts are as follows:
> 
> #!/usr/local/bin/perl
> use GD;
> print "Content-type: image/png\n\n"
> $im = new GD::Image(100,50);
> ...
> binmode STDOUT;
> # print the image to stdout
> print $im->png;
> 
> 
> Is somebody knowing the reason of the error ? 

Yep, STDOUT is tied to the Apache class so that it outputs via the Apache
API. There should be no need to binmode it.

-- 
<Matt/>

Fastnet Software Ltd. High Performance Web Specialists
Providing mod_perl, XML, Sybase and Oracle solutions
Email for training and consultancy availability.
http://sergeant.org http://xml.sergeant.org

Reply via email to