Python - Transfer a file from HTTP(S) URL to FTP/Dropbox without disk writing (chunked upload)
问题 I have a large file (500 Mb-1Gb) stored on a HTTP(S) location (say https://example.com/largefile.zip ). I have read/write access to an FTP server I have normal user permissions (no sudo). Within these constraints I want to read the file from the HTTP URL via requests and send it to the FTP server without writing to disk first. So normally, I would do. response=requests.get('https://example.com/largefile.zip', stream=True) with open("largefile_local.zip", "wb") as handle: for data in response