Blog categories
- Web development (13)
- Python (9)
- Django (8)
- Javascript (4)
- MongoDB (3)
- HTML (3)
- jQuery (3)
- PHP (2)
- MySQL (2)
- GD (1)
- VLC (1)
- Mac OS (1)
- IPTV (1)
- Ubuntu (1)
- Linux (1)
- GridFS (1)
-
A custom MongoDb/GridFS file wrapper for the Django HttpResponse object
Created by dan on Monday 22nd February, 2010 at 4:28 PM
Until today, I had been using Django's FileWrapper class to iterate over an open GridFS and yeild chunks to an HttpResponse object, however I noticed that files over 8 KB were being reiterated in the output. As far as I could fathom, the reason why this had been occurring is ...