From ea152609fcf08aa02e85154e1f9a74a349241483 Mon Sep 17 00:00:00 2001 From: Niki Roo Date: Wed, 24 Apr 2019 08:36:08 +0200 Subject: [PATCH] IOUtils: better buffer size --- src/be/nikiroo/utils/IOUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/be/nikiroo/utils/IOUtils.java b/src/be/nikiroo/utils/IOUtils.java index c7cbe25..a263eb1 100644 --- a/src/be/nikiroo/utils/IOUtils.java +++ b/src/be/nikiroo/utils/IOUtils.java @@ -55,7 +55,7 @@ public class IOUtils { */ public static void write(InputStream in, OutputStream out) throws IOException { - byte buffer[] = new byte[4069]; + byte buffer[] = new byte[4096]; for (int len = 0; (len = in.read(buffer)) > 0;) { out.write(buffer, 0, len); } -- 2.27.0