You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to use a bas64.NewDecoder(ba64.RawURLEncoding,in) to decode a b64 stream but I've found that it sometimes misses some bytes. If I use the DecodeString method everything is good, but if I use the reader a byte in the end is lost. If I use a base64.URLEncoding with the required padding everything seems to be working fine.
The text was updated successfully, but these errors were encountered:
rakyll
changed the title
base64 decoder with RawURLEncoding seems to miss some bytes
encoding/base64: base64 decoder with RawURLEncoding seems to miss some bytes
Nov 28, 2015
rsc
changed the title
encoding/base64: base64 decoder with RawURLEncoding seems to miss some bytes
encoding/base64: Decoder assumes padding
Dec 28, 2015
Hello,
I'm trying to use a bas64.NewDecoder(ba64.RawURLEncoding,in) to decode a b64 stream but I've found that it sometimes misses some bytes. If I use the DecodeString method everything is good, but if I use the reader a byte in the end is lost. If I use a base64.URLEncoding with the required padding everything seems to be working fine.
I've added an example here:
http://play.golang.org/p/pH0Q0FVbn-
The text was updated successfully, but these errors were encountered: