diff --git a/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java b/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java index 732106f5..dc17dc9c 100644 --- a/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java +++ b/src/main/java/stirling/software/SPDF/controller/api/misc/ExtractImageScansController.java @@ -144,7 +144,7 @@ public class ExtractImageScansController { // Read the output photos in temp directory List tempOutputFiles = - Files.list(tempDir).sorted().collect(Collectors.toList()); + Files.list(tempDir).sorted().toList(); for (Path tempOutputFile : tempOutputFiles) { byte[] imageBytes = Files.readAllBytes(tempOutputFile); processedImageBytes.add(imageBytes);