[DEV] fix the get of the data

This commit is contained in:
Edouard DUPIN 2024-09-20 19:02:22 +02:00
parent 4f5d55bb01
commit 8b831522dc

View File

@ -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;