Posting gzip'd image file - server says Malformed Upload?

Paul Hubert phbrt25 at gmail.com
Wed Jun 17 20:45:12 EDT 2015


On Wednesday, June 17, 2015 at 8:24:17 PM UTC-4, Chris Angelico wrote:

> Are you sure you want iteration and writelines() here? I would be
> inclined to avoid those for any situation that isn't plain text. If
> the file isn't too big, I'd just read it all in a single blob and then
> write it all out at once.
> 
> ChrisA

Do you think that would fix my issue? Could you give me an example? 



More information about the Python-list mailing list