HTTP Download very Big File
- by Luca
I'm working at a web application in Python/Twisted.
I want the user to be able to download a very big file ( 100 Mb). I don't want to load all the file in memory (of the server), of course.
server side I have this idea:
...
request.setHeader('Content-Type', 'text/plain')
fp = open(fileName, 'rb')
try:
r = None
while r != '':
r =…