hi,
i am encoding data and sending the same through TCP/IP and then trying to decode the same with base64.b64decode() operations, but for some reason i am not able to decode the data when it contains padding as "==", but the same code works when it contains padding as one character "="
But same data when i try with Java decoders it decodes perfectly in both the cases.
Not able to find the issue exactly, getting exception and terminating my simulator
Is it bug in python ?
File "C:\Python34\lib\base64.py", line 46, in _bytes_from_decode_data
"string, not %r" % s.__class__.__name__) from None
TypeError: argument should be a bytes-like object or ASCII string, not 'dict'
Thanks In advance.
i am encoding data and sending the same through TCP/IP and then trying to decode the same with base64.b64decode() operations, but for some reason i am not able to decode the data when it contains padding as "==", but the same code works when it contains padding as one character "="
But same data when i try with Java decoders it decodes perfectly in both the cases.
Not able to find the issue exactly, getting exception and terminating my simulator
Is it bug in python ?
File "C:\Python34\lib\base64.py", line 46, in _bytes_from_decode_data
"string, not %r" % s.__class__.__name__) from None
TypeError: argument should be a bytes-like object or ASCII string, not 'dict'
Thanks In advance.