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
Damir Hakimov wrote:
> 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.
I agree the file is too big, but can you show a small
Python prog
It seems unlikely that there is a bug in Python's base64 encode/decode
functions, but it is possible.
For me, a long string of the same length you mention survives an encode/decode
pair (a round-trip):
Python 2.3.3 (#1, May 7 2004, 10:31:40)
[GCC 3.3.3 20040412 (Red Hat Linux 3.3.3-7)] o
Damir Hakimov wrote:
> I found a strange bug in base64.encode and decode, when I try to encode
> - decode a file 1728512 bytes lenth.
does this work on your machine?
>>> import base64
>>> x = base64.encodestring(1728512 * "*")
>>> len(base64.decodestring(x))
1728512
does it work also if you cha
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.
--
htt