base64 Incorrect Padding
Peter Otten
__peter__ at web.de
Fri Jul 31 14:56:15 EDT 2009
Brandon Fredericks wrote:
> I did a search within this group, but couldn't find any information on
> this.
>
> I am sending base64 encoded data as the content over http using
> urllib2 urlopen. When I receive the data and attempt to decode it, I
> get an "Incorrect Padding" error. Is there a simple way to fix this? A
> better way to send and receive the data possibly (using base64 of
> course)?
Have the server send some known data. Read it with urllib2.urlopen().
Compare with that same data that you encoded locally. What are the
differences?
Peter
More information about the Python-list
mailing list