The image should be served from its own URL. Maybe just create (mostly taken from Mojolicious::Plugin::Captcha):
get '/captcha.jpg' => sub { my $c = shift; $c->render( $c->stash->{data} ) }
and have in your page:
<img src="/captcha.jpg" alt="A captcha. Sucks if you're blind." />
In reply to Re: Mojolicous::Lite how to include an image received as binary data
by Corion
in thread Mojolicous::Lite how to include an image received as binary data
by frazap
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |