updateProfileImage and updateProfileBackgroundImage problems

3 views
Skip to first unread message

Yoav Aviram

unread,
Sep 6, 2009, 7:43:30 AM9/6/09
to Twython Talk
I am having problems while using 'updateProfileImage()' and
'updateProfileBackgroundImage()'.
Both seem to work but the result is a corrupted file on the twitter
side.

Any ideas?

Yoav Aviram

unread,
Sep 6, 2009, 9:45:32 AM9/6/09
to Twython Talk
Found the problem:

In both methods the image file was opened as ASCII file, which on
windows causes the problem.
I changed lines 1238 and 1259 to:

files = [("image", filename, open(filename,'rb').read())]

which solved the problem.

Ryan McGrath

unread,
Sep 6, 2009, 3:43:59 PM9/6/09
to twytho...@googlegroups.com
Ah, this is great! People have reported this issue happening on and off, wasn't sure what the deal was. You rock, I'll throw this into the master version real quick like. ;)

- Ryan
Reply all
Reply to author
Forward
0 new messages