PIL "IOError: image file truncated" with big images

I think this problem is not Zope-related. Nonetheless I'll explain what I'm trying to do: I'm using a PUT_factory in Zope to upload images to the ZODB per FTP. The uploaded image is saved as a Zope