"izak marais" wrote:

> What I had been doing was first using
>
> fp = open("test.bmp","w")

that opens the file in *text* mode, which, among other things, means that the
line feed character (chr(10)) is mapped to the native line ending on some plat-
forms.

to open a file for writing in binary mode, use open(filename, "wb").

</F> 



_______________________________________________
Image-SIG maillist  -  Image-SIG@python.org
http://mail.python.org/mailman/listinfo/image-sig

Reply via email to