Skip to content

Commit

Permalink
[Enhance] Enlarge buffer size for temp file
Browse files Browse the repository at this point in the history
  • Loading branch information
rh-id committed Jul 18, 2023
1 parent 2d8c0d7 commit 48d6cf8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public File createTempFile(String fileName, Uri content) throws IOException {

FileOutputStream fileOutputStream = new FileOutputStream(tmpFile);
BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(fileOutputStream);
byte[] buff = new byte[2048];
byte[] buff = new byte[102800];
int b = bufferedInputStream.read(buff);
while (b != -1) {
bufferedOutputStream.write(buff);
Expand Down

0 comments on commit 48d6cf8

Please sign in to comment.