SyntaxFix
Write A Post
Hire A Developer
Questions
If you are trying to decode a web image you can simply use this :
import base64 with open("imageToSave.png", "wb") as fh: fh.write(base64.urlsafe_b64decode('data'))
data => is the encoded string
It will take care of the padding errors