소스 검색

解决截图被占用无法打开问题

gaoxun250@sina.com 3 년 전
부모
커밋
0a380c6ff9
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java

+ 1 - 0
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java

@@ -186,6 +186,7 @@ public class ZLMRESTfulUtils {
                     FileOutputStream outStream = new FileOutputStream(snapFile);
                     FileOutputStream outStream = new FileOutputStream(snapFile);
 
 
                     outStream.write(Objects.requireNonNull(response.body()).bytes());
                     outStream.write(Objects.requireNonNull(response.body()).bytes());
+                    outStream.flush();
                     outStream.close();
                     outStream.close();
                 } else {
                 } else {
                     logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));
                     logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message()));