[Zope] Base64 - Encoding/Decoding without external method

Chris Withers chris at simplistix.co.uk
Wed Feb 9 04:45:25 EST 2005

robert wrote:
>> return thing.decode('base64')
> I tried this and get an error
> *Error Type: Error*
> *Error Value: Incorrect padding

That means "it worked" but the string you tried to decode was garbage.
It likely had spaces that shouldn't have been there at either end ;-)


Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk

More information about the Zope mailing list