nite_man has asked for the wisdom of the Perl Monks concerning the following question:
Maybe someone knows how define content type for this image if it should display between header and footer? Because if I run script with my code it makes an effort to redefine main content type of page (text/html) and display image without header and footer.<& Elements/Header &> %$r->content_type('image/png'); %$r->send_http_header(); %$m->out($image); <& Elements/Footer &> <%INIT> my $image = generate_image(type => 'png'); </%INIT>
I'd like to display a generated image directly.<img src=my_script_which_produce_image.pl>
TIA
--------------------------------
SV* sv_bless(SV* sv, HV* stash);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Display a generated image using Mason
by simon.proctor (Vicar) on Jun 09, 2003 at 21:41 UTC | |
|
Re: Display a generated image using Mason
by flounder99 (Friar) on Jun 09, 2003 at 17:10 UTC | |
| |
|
Re: Display a generated image using Mason
by ctilmes (Vicar) on Jun 09, 2003 at 18:10 UTC | |
|