为什么bImageFromConvert得到了null,即使o有数据?
BufferedImage img = null;
byte[] s;
ArrayList<Byte> f;
InputStream in;
BufferedImage bImageFromConvert;
public void print(ArrayList<Byte> lst) throws IOException {
byte[] o = new byte[lst.size()];
for (int i = 0; i < lst.size(); i++) {
o[i] = lst.get(i);
}
in = new ByteArrayInputStream(o);
bImageFromConvert = ImageIO.read(in);