notions_ftp = ftplib.FTP(ftp_host, ftp_user, ftp_passwd) folder = "Leisure Arts - Images" notions_ftp.cwd(folder) image = open("015693PR-com.jpg", "wb") notions_ftp.retrlines("RETR 015693PR-com.jpg", image) send_image = open("015693PR-com.jpg", 'r')
So the image is there, I can look at it, but when I open the file that this code makes, it is just blank. I tried to look around the urllib and urllib2 and played with that, but I can't figure out how to use it with a login using FTP. I have tried A LOT of stuff. I tried using storlines and still nothing in the file. I am ready to pull my hair out.
This post has been edited by Kacie: 26 May 2010 - 07:42 PM