Input byte array has incorrect ending byte at 40

后端 未结 3 1374
攒了一身酷
攒了一身酷 2021-02-19 00:32

I have a string that is base64 encoded. It looks like this:

eyJibGExIjoiYmxhMSIsImJsYTIiOiJibGEyIn0=

Any online tool can decode this to the pro

3条回答
  •  独厮守ぢ
    2021-02-19 00:45

    I was trying to use the strings from the args. I found that if I use arg[0].trim() that it made it work. eg

    Base64.getDecoder().decode(arg[0].trim());
    

    I guess there's some sort of whitespace that gets it messed up.

提交回复
热议问题