Browse Source

Change fs.cp buffer size

Ben Hsieh 8 years ago
parent
commit
4791571e23
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java

+ 1
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java View File

@@ -449,7 +449,7 @@ public class RNFetchBlobFS {
449 449
             in = inputStreamFromPath(path);
450 450
             out = new FileOutputStream(dest);
451 451
 
452
-            byte[] buf = new byte[1024];
452
+            byte[] buf = new byte[10240];
453 453
             int len;
454 454
             while ((len = in.read(buf)) > 0) {
455 455
                 out.write(buf, 0, len);