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
--
-------------------------------------------------------------
Axel Beckert ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting
Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: [EMAIL PROTECTED] Voice: +49 6133 926530
WWW: http://www.ecos.de/ Fax: +49 6133 925152
-------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]