Python: Ignore 'Incorrect padding' error when base64 decoding
Posted
by swisstony
on Stack Overflow
See other posts from Stack Overflow
or by swisstony
Published on 2010-05-31T07:27:15Z
Indexed on
2010/05/31
7:32 UTC
Read the original article
Hit count: 230
I have some data that is base64 encoded that I want to convert back to binary even if there is a padding error in it. If I use
base64.decodestring(b64_string)
it raises an 'Incorrect padding' error. Is there another way?
© Stack Overflow or respective owner