Procházet zdrojové kódy

Change fs.cp buffer size

Ben Hsieh před 8 roky
rodič
revize
4791571e23

+ 1
- 1
src/android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java Zobrazit soubor

@@ -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);