0
我解码位图到字符串,把UT在SharedPreferences。
后来我得到了它,并把它放在PhotoEncoded
在这里,我想它作为字节解码[],但它显示了我的错误:字符串为byte []的解码错误:找到的解码没有合适的方法(字节[])
String PhotoEncoded = prefs.getString("AccountPhotoString",null);
byte[] b = PhotoEncoded.getBytes();
byte[] imageAsBytes = Base64.decode(b);//error
这有什么错呢?