Danke!
I was able to take your example and graft it together with an
example for using GD::Graph and do exactly what I wanted.
On Tuesday 26 March 2002 10:53 am, you wrote:
> Hi!
>
> On Tue, Mar 26, 2002 at 05:31:07AM -0600, Leeland Heins wrote:
> > Should I use the meta method for setting the http header, or
> > $http_headers_out?
>
> Both should work.
>
> > Do I need to set optEarlyHttpHeader?
>
> Nope. But $escmode = 0 is useful. :-)
>
> > What file handle can I
> > print or write the graphic data out to, OUT?
>
> Yes.
>
> > I've read all of the docs on the EmbPerl web site, but working with
> > graphics really isn't covered directly at all.
>
> I guess the reason is, as Michael stated, that templating systems
> aren't the best idea for generating images.
>
> But in general it works. E.g. the following little Embperl script
> works fine:
>
> [- $req_rec->content_type('image/gif'); # Sending the right header
> $escmode = 0; # No HTML escaping
> $image = 'embperl_pb2.gif';
> open(IMG,'<',$image) or die "Can't open $image: $!";
> read(IMG,$buffer,-s IMG);
> close(IMG);
> print OUT $buffer; -]
>
> Regards, Axel Beckert
-------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]