[DEV] fix the get of the data
This commit is contained in:
parent
4f5d55bb01
commit
8b831522dc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user