카테고리 없음
[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);
}