[cgiapp] How to avoid delay when writing file in bytes

Bradley C Bailey cgiapp at brad.memoryleak.org
Wed Nov 26 14:30:11 EST 2008


> I would like to do the same inside my CGI::App but of course I am not 
> allowed to print directly to STDOUT so following this method I would 
> have to suck in the whole file first before I return the output to be 
> handled by run which causes an unacceptable delay if the file is large.
> 
> So... how to approach this? Is there a way I can push out a file as a 
> download from within CGI::Application without having to suck the whole 
> thing into memory first?

Check out CGI::Application::Plugin::Stream

Regards,
Bradley C Bailey



More information about the cgiapp mailing list