[mod_python] Sending files

SAiello at Jentoo.com SAiello at Jentoo.com
Mon Jan 17 05:36:59 EST 2005


Hello All,

I was wondering if there was a better way to send file through mod_python 
than:

file=open('example.mp3', 'r')
req.conent_type='audio/mpeg'
req.write(file.read())
file.close()

Just from the simple use I have done, this manner of sending files seems to be 
slow. Any suggestions ?

Thanks,


More information about the Mod_python mailing list