转载:https://blog.csdn.net/luanpeng825485697/article/details/78165788 我测试了下压缩byte[],是可以的 using System; using System.Collections; using System.Collections.Generic; using System.IO; using System.IO.Compression; using UnityEngine; public class TestByteAtt…
写入内容到文件 public static void writeBytesToFile() throws IOException{ String s = "aaaaaaaaD等等"; byte[] bs= s.getBytes(); OutputStream out = new FileOutputStream("d:/abc.txt"); InputStream is = new ByteArrayInputStream(bs); byte[] buff = ne…