Implement DownloadAll for writing file.