将整数数组写入文件输出流
import java.io.FileOutputStream; import java.io.IOException; public class Main {/*来自 时 代 J a v a 公 众 号 - N o w J a v a . c o m*/ public static void main(String[] arguments) { int[] data = { 711, 73, 701, 56, 517, 97, 13, 0, 12, 1, 145, 0, 1, 255, 255, 137, 89, 82, 181, 50, 220, 103, 21, 0, 59 }; try (FileOutputStream file = new FileOutputStream("pic.dat")) { for (int i = 0; i < data.length; i++) { file.write(data[i]); } file.close(); } catch (