美文网首页
Byte[] 数组

Byte[] 数组

作者: 陈陈_04d0 | 来源:发表于2020-09-10 17:25 被阅读0次

1、String 转为:byte data.getBytes()

2、Byte[] byte 转为:String data =new String(mBytes, Charset.forName("UTF-8"));

3、输入流 ByteArrayInputStream bis =new ByteArrayInputStream(mBytes);

4、输出流ByteArrayOutputStream bos =new ByteArrayOutputStream();

相关文章

网友评论

      本文标题:Byte[] 数组

      本文链接:https://www.haomeiwen.com/subject/qbbpektx.html