[Catalyst] File downloads - Plugin?

Matt S Trout dbix-class at trout.me.uk
Thu Aug 11 22:03:04 CEST 2005


On Thu, Aug 11, 2005 at 12:27:29PM +0100, Toby Corkindale wrote:
> Hi,
> I'm in a position where I'd like to serve file downloads, out of database
> BLOBs, via Catalyst.
> 
> These files are potentially very large, and so I would rather not suck the
> entire lot of data out of the DB and into Catalyst's $c->response->output()
> variable. I'd rather have some kind of solution whereby I pass a
> IO::Handle, and then at output time this is used to write directly out to
> Apache.
> 
> Is there any plugin that will help me here, or would I need to write this
> myself?

I think the refactor/ branch in svn and the HTTP-Body package (also in svn)
are working towards this ability but not quite here yet. Maybe you could have
a go at helping out with that.

-- 
     Matt S Trout           Website: http://www.shadowcatsystems.co.uk
  Technical Director        E-mail:  mst (at) shadowcatsystems.co.uk
Shadowcat Systems Ltd.

 + Help us build a better perl ORM: http://dbix-class.shadowcatsystems.co.uk/ +



More information about the Catalyst mailing list