illegal base64 data at input byte 37

golang,base64.StdEncoding.DecodeString解码时报错:illegal base64 data at input byte 37

可能的原因一:要decode的字符串不是encode后的

可以检查下base64 encode后的字符串是什么,看是否和要decode解码的一样。

猜你喜欢

转载自blog.csdn.net/hugo_lei/article/details/109079888