diff --git a/app/src/main/java/io/xpipe/app/browser/file/BrowserFileTransferOperation.java b/app/src/main/java/io/xpipe/app/browser/file/BrowserFileTransferOperation.java index 8834881f6..edad848fc 100644 --- a/app/src/main/java/io/xpipe/app/browser/file/BrowserFileTransferOperation.java +++ b/app/src/main/java/io/xpipe/app/browser/file/BrowserFileTransferOperation.java @@ -253,7 +253,7 @@ public class BrowserFileTransferOperation { var streamStartLength = inputStream.read(streamStart, 0, 1024); if (streamStartLength < 1024) { inputStream.close(); - inputStream = new ByteArrayInputStream(streamStart); + inputStream = new ByteArrayInputStream(streamStart, 0, streamStartLength); } else { inputStream.reset(); }