I am trying to decode an image I select from a directory. Once the image is selected I need to decode the encoded string.
I keep getting the error 'incorrect padding'.
Below is the code and the encoded string when I print it.
encoded = message['image']
decoded = base64.b64decode(encoded)
Here is the string: Its a big string so I hosted it here. https://www.scribd.com/document/402282670/String
The string starts with
data:image/png;base64,iVBORw0KGgoAAAANSUh