On 5/27/07, Josef Meile <[EMAIL PROTECTED]> wrote:

 >windos and linux
windos? Is it a new version of DOS? ;-)

No. Pretty much the same as it always was.

> this snippet behaves differently on windows and linux:
> http://zope.pastey.net/42188-1gbl
Why don't you try to directly create a OFS.Image directly
into the zopedb, then see if this still happens. It would
help you to discard any error inside the ProfilePicture

I failed to mention that ProfilePicture was actually an OFS.Image
Martijn Pieters showed the solution:
open the file as a binary file.
python documentation has this to say about the issue:
When opening a binary file, you should append 'b' to the mode value to
open the file in binary mode, which will improve portability.

Thanks to everyone....

Einar Næss Jensen
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to