So here is my code
import ftplib
s = ftplib.FTP("Host", "Username", "Password")
s.cwd("public_html/test")
image = open("test.jpg", "rb")
s.storbinary('STOR test.jpg', image)
image.close()
s.quit()
I’m just getting a corrupted image when I check it out… I’m to the point where I’ll base64 the image and upload that…
If anyone can help please let me know what I’m doing wrong
I’m not entirely sure what was wrong but this is what finally worked for me
Hope this helps anyone else in the same predicament