modules/mainPart/src/main/java/com/zt/life/modules/sysPictureBase/controller/SysPictureBaseController.java
@@ -101,6 +101,7 @@ } if (sysPictureBase.getIsDefault()==1){ sysPictureBaseService.updateByDefault(sysPictureBase.getId(),sysPictureBase.getProductType()); sysPictureBaseService.updateProdeuctImg(sysPictureBase.getId(),sysPictureBase.getProductType()); } if (file != null) { BufferedImage bufferedImage = null; @@ -144,7 +145,8 @@ byte[] buff = new byte[1024]; //所读取的内容使用n来接收 int n; //当没有读取完时,继续读取,循环 //当没有读 //取完时,继续读取,循环 while ((n = in.read(buff)) != -1) { //将字节数组的数据全部写入到输出流中 outputStream.write(buff, 0, n);