From 8b831522dc1b48237ce3927366c88fdb68be2a3d Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Fri, 20 Sep 2024 19:02:22 +0200 Subject: [PATCH] [DEV] fix the get of the data --- src/org/kar/archidata/api/DataResource.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/org/kar/archidata/api/DataResource.java b/src/org/kar/archidata/api/DataResource.java index 03c5e67..f5bbb54 100644 --- a/src/org/kar/archidata/api/DataResource.java +++ b/src/org/kar/archidata/api/DataResource.java @@ -479,7 +479,8 @@ public class DataResource { } final String responseRange = String.format("bytes %d-%d/%d", from, to, file.length()); // logger.info("responseRange: {}", responseRange); - try (final RandomAccessFile raf = new RandomAccessFile(file, "r")) { + try { + final RandomAccessFile raf = new RandomAccessFile(file, "r"); raf.seek(from); final long len = to - from + 1;