Commit 9586f58a30ccbced6ba15693182269d4f67afe2b
Committed by
GitHub
Merge pull request #738 from gaoxun1937/wvp-28181-2.0
解决截图被占用无法打开问题
Showing
1 changed file
with
1 additions
and
0 deletions
src/main/java/com/genersoft/iot/vmp/media/zlm/ZLMRESTfulUtils.java
| @@ -186,6 +186,7 @@ public class ZLMRESTfulUtils { | @@ -186,6 +186,7 @@ public class ZLMRESTfulUtils { | ||
| 186 | FileOutputStream outStream = new FileOutputStream(snapFile); | 186 | FileOutputStream outStream = new FileOutputStream(snapFile); |
| 187 | 187 | ||
| 188 | outStream.write(Objects.requireNonNull(response.body()).bytes()); | 188 | outStream.write(Objects.requireNonNull(response.body()).bytes()); |
| 189 | + outStream.flush(); | ||
| 189 | outStream.close(); | 190 | outStream.close(); |
| 190 | } else { | 191 | } else { |
| 191 | logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message())); | 192 | logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message())); |