dan/hivelogic-flickrtouchr — Issue #8: Get Image - Corrupt
Author: cadab
Created: 2012-01-31 22:44:09+00:00
State: open

When running this script on my windows machine, all of the images that got downloaded were corrupted, either completely or partly.

I made a small tweak to the Get Photo method.

# Save the file!
fh = open(filename, "wb")
fh.write(data)
fh.close()

I changed the open parameters to "wb" from "w". I take it this means 'Write Binary'.

Not sure what effect this will have on other systems, or whether there is something up with my system.

But it might help someone else :)