Thanks for your help. I did it.

On Sat, Nov 28, 2009 at 12:19 AM, Bill Moseley <[email protected]> wrote:

>
>
>  On Fri, Nov 27, 2009 at 7:45 AM, Malloy <[email protected]> wrote:
>
>> Hi All
>>
>> In the past, i use mason to handle my confirm code like this:
>>    ( my $data= $image->ImageToBlob(...);)
>> $r->content_type('image/jpeg');
>>     $m->clear_buffer;
>>     print $data;
>>     $m->flush_buffer;
>>     $m->abort;
>> But I want to know how to handle it using catalyst.
>>
>
> Same way.
>
> my $res = $c->response;
>
> $res->content_type( $type );
> $res->body( $data );
>
> Plus set your cache, length, and expires headers.  I also test
> if-modified-since headers.
>
>
>
>
>
>
> --
> Bill Moseley
> [email protected]
>
> _______________________________________________
> List: [email protected]
> Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
> Searchable archive:
> http://www.mail-archive.com/[email protected]/
> Dev site: http://dev.catalyst.perl.org/
>
>


-- 
Jack Malloy
_______________________________________________
List: [email protected]
Listinfo: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to