[Catalyst] File downloads - Plugin?
Sebastian Riedel
sri at oook.de
Fri Aug 12 06:29:31 CEST 2005
Am 11.08.2005 um 22:03 schrieb Matt S Trout:
> 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.
Well, we are working on uploads actually, handles for output were
planned for a long time but so far we havn't agreed on how to
implement them (without breaking backwards compatibility).
--
sebastian
More information about the Catalyst
mailing list