From 8b2d453d3ee2358f3e207e92a0279c5dc3fd9635 Mon Sep 17 00:00:00 2001 From: Marco Mirisola Date: Mon, 16 Apr 2018 16:17:10 +0200 Subject: [PATCH] Increase the buffer size from 1024 to 4096 --- .../src/main/java/com/readystatesoftware/sqliteasset/Utils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/src/main/java/com/readystatesoftware/sqliteasset/Utils.java b/library/src/main/java/com/readystatesoftware/sqliteasset/Utils.java index 67cecaf..fb63656 100644 --- a/library/src/main/java/com/readystatesoftware/sqliteasset/Utils.java +++ b/library/src/main/java/com/readystatesoftware/sqliteasset/Utils.java @@ -40,7 +40,7 @@ public static List splitSqlScript(String script, char delim) { } public static void writeExtractedFileToDisk(InputStream in, OutputStream outs) throws IOException { - byte[] buffer = new byte[1024]; + byte[] buffer = new byte[4096]; int length; while ((length = in.read(buffer))>0){ outs.write(buffer, 0, length);