点滴1

采用如下写法

           ImageOutputStream ios = ImageIO.createImageOutputStream(new FileOutputStream(file););

然后只ios.close的话,file是不会关闭的,再访问会发生共享冲突


建议分别关闭

猜你喜欢

转载自blog.csdn.net/maopeng0535/article/details/45598941