[Catalyst] Dynamic images and Catalyst
    Dylan Vanderhoof 
    DylanV at semaphore.com
       
    Fri Jan 13 20:02:28 CET 2006
    
    
  
Oh, of course.
Thanks.
-Dylan
> -----Original Message-----
> From: Andy Grundman [mailto:andy at hybridized.org] 
> Sent: Friday, January 13, 2006 10:55 AM
> To: The elegant MVC web framework
> Subject: Re: [Catalyst] Dynamic images and Catalyst
> 
> 
> Dylan Vanderhoof wrote:
> > I'm sure its documented somewhere, but I'm failing to find it.  
> > 
> > Is there a best practice for using in-memory images with Catalyst?  
> > I have a controller that's generating an image into a 
> scalar as binary
> > data and would like to inline this controller in a page.  What's the
> > best approach for doing this?
> 
> sub image : Local {
>      my ( $self, $c ) = @_;
> 
>      my $image = get_image_data();
>      $c->res->body( $image );
>      $c->res->content_type( 'image/png' );
> }
> 
> <img src="http://localhost/foo/image" />
> 
> -Andy
> 
> _______________________________________________
> Catalyst mailing list
> Catalyst at lists.rawmode.org
> http://lists.rawmode.org/mailman/listinfo/catalyst
> 
    
    
More information about the Catalyst
mailing list