Re: base64 Incorrect Padding

2009-07-31 Thread Gabriel Genellina
En Fri, 31 Jul 2009 18:58:43 -0300, bfrederi escribió: So what if I used a different encoding that isn't ASCII? Like UTF-8? Would that give me lengths that are multiples of 4 based on how the characters are represented? Or would I still need to pad with '='? It doesn't matter, a base64-enco

Re: base64 Incorrect Padding

2009-07-31 Thread MRAB
bfrederi wrote: So what if I used a different encoding that isn't ASCII? Like UTF-8? Would that give me lengths that are multiples of 4 based on how the characters are represented? Or would I still need to pad with '='? I think that when it says Base-64 it's talking about the byte values used f

Re: base64 Incorrect Padding

2009-07-31 Thread bfrederi
So what if I used a different encoding that isn't ASCII? Like UTF-8? Would that give me lengths that are multiples of 4 based on how the characters are represented? Or would I still need to pad with '='? -- http://mail.python.org/mailman/listinfo/python-list

Re: base64 Incorrect Padding

2009-07-31 Thread MRAB
Max Erickson wrote: MRAB wrote: 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 Paddin

Re: base64 Incorrect Padding

2009-07-31 Thread Max Erickson
MRAB wrote: > 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" e

Re: base64 Incorrect Padding

2009-07-31 Thread MRAB
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 f

Re: base64 Incorrect Padding

2009-07-31 Thread Peter Otten
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 simp

base64 Incorrect Padding

2009-07-31 Thread Brandon Fredericks
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 sen