List Info

Thread: save() question/bug




save() question/bug
user name
2006-09-04 10:51:53
"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-SIGpython.org
htt
p://mail.python.org/mailman/listinfo/image-sig
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )