<human>:  How to upload binary file with ftplib in Python?
<bot>: Here is some code to upload binary file `myfile.txt` with ftplib

ftp.storbinary('STOR myfile.txt', open('myfile.txt', 'rb'))

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.