This function replaces the original one (commented out, below); this one writes one
chuck of data at once on the file system and it is suitable to download very large files.
It has been tested with the NTE model - about 770 MB. The original one crashed. It
has been tested with Apache and Nginx; it does not work with python Simple HTTP
Server (it does not send back some headers in the response ....)