110,549
社区成员
发帖
与我相关
我的任务
分享
String logText = Util.getCurrentTime() + " 用户:" + PrefsActivity.GetPoliceCode(MainActivity.this)
+ "登录\r\n\r\n";
// 转换为Base64编码格式
byte[] textByte = logText.getBytes();
String textBase64 = Base64.encodeToString(textByte, Base64.DEFAULT);
//Base64转换为string
byte[] buffer = Convert.FromBase64String(fileText);
text = System.Text.ASCIIEncoding.UTF8.GetString(buffer);