Skip to content

fix(synology): replace readNBytes with Guava ByteStreams.read#1489

Merged
mengyushen merged 2 commits intodtinit:masterfrom
SynologyOpenSource:synology-remote-read-n-bytes
Apr 7, 2026
Merged

fix(synology): replace readNBytes with Guava ByteStreams.read#1489
mengyushen merged 2 commits intodtinit:masterfrom
SynologyOpenSource:synology-remote-read-n-bytes

Conversation

@simonxander
Copy link
Copy Markdown
Collaborator

Goal

The goal of this change is to improve compatibility of chunked reading in
by replacing the Java 9+ method with Guava's
, ensuring the code works correctly in older Java environments.

Changes

  • Dependency Update: Added com.google.guava:guava to the Synology extension's build.gradle.
  • Code Refactor: Updated SynologyDTPService to use ByteStreams.read when reading video chunks.

## Goal
The goal of this change is to improve compatibility of chunked reading in
 by replacing the Java 9+  method with Guava's
, ensuring the code works correctly in older Java environments.

## Changes
- **Dependency Update:** Added `com.google.guava:guava` to the Synology
  extension's `build.gradle`.
- **Code Refactor:** Updated `SynologyDTPService` to use `ByteStreams.read`
  when reading video chunks.
Copy link
Copy Markdown

@yukthagaduputi yukthagaduputi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mengyushen mengyushen merged commit 7789bc6 into dtinit:master Apr 7, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants