카테고리 없음

[java] ByteArrayResource to File

냐옴 2023. 7. 25. 09:35

 

try {
    ByteArrayResource body = responseEntity.getBody();
    Files.write(Path.of("./out.wav"), body.getByteArray());
} catch (IOException e) {
    throw new RuntimeException(e);
}
저작자표시 비영리 동일조건 (새창열림)