byte转inputStream及互相转化和各种的文件转化字符串转图片byte转字符串各种的方法
1、将File、FileInputStream 转换为byte数组:
File file = new File("file.txt");
InputStream input = new FileInputStream(file);
byte[] byt = new byte[input.available()];
input.read(byt);
2、将byte数组转换为InputStre...
原创
2019-04-17 15:41:46 ·
1107 阅读 ·
0 评论