Commit 0a380c6ff916015b434c398448ae08746b6b0a4b
1 parent
6246ce6b
解决截图被占用无法打开问题
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 | 186 | FileOutputStream outStream = new FileOutputStream(snapFile); |
| 187 | 187 | |
| 188 | 188 | outStream.write(Objects.requireNonNull(response.body()).bytes()); |
| 189 | + outStream.flush(); | |
| 189 | 190 | outStream.close(); |
| 190 | 191 | } else { |
| 191 | 192 | logger.error(String.format("[ %s ]请求失败: %s %s", url, response.code(), response.message())); | ... | ... |