java.lang.IllegalArgumentException: bad base-64

后端 未结 3 874
野趣味
野趣味 2021-01-21 00:01

I am trying to encode and decode a String using android.util.Base64, but it gives a bad base-64 error.

The code with the problem is:

private byte[] base         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-21 00:16

    remove the prefix string " data:image/png;base64, ", get the string of after "data:image/png;base64,", it can decode

提交回复
热议问题