base64.encode and decode not correct

Damir Hakimov damir at agg.astranet.ru
Wed Aug 17 00:55:31 EDT 2005


Damir b wrote:

>Hi *!
>
>I found a strange bug in base64.encode and decode, when I try to encode 
>- decode a file 1728512 bytes lenth.
>Is somebody meet with this? I don't attach the file because it big, but 
>can send to private.
>
>Which solution for transfer file (binary data) via string-only object?
>
>Damir.
>
>  
>
Sorry, guis.

I made a mistake. I open and encode file on Linux and save and decode it 
on Windows without "b" in mode.
I found it 5 minutes past I sent last message when I try to use 
binascii.hexlify and took the same result.

Thanks to all.




More information about the Python-list mailing list