Hi,

To serve binary content from a component I am doing:

<%init>
$m->clear_buffer();
$r->content_type("video/mp4");
$r->headers_out->add('Content-length' => -s $file);
$r->sendfile($file);
$m->abort(200);
</%init>

Is that the correct way?

Also, _must_ I add "inherit=>undef" in the <%flags> section? Or is the
$m->clear_buffer() enough to insure no autohandler side effect may
corrupt the $file output?

Thanks,

-- 
http://www.critikart.net

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to