mirror of
https://github.com/apache/cordova-plugin-camera.git
synced 2025-02-22 04:52:51 +08:00
fix(android): Fixed too small buffer while reading temporary file
This commit is contained in:
parent
0da946d770
commit
a5142f1e37
@ -786,7 +786,9 @@ public class CameraLauncher extends CordovaPlugin implements MediaScannerConnect
|
||||
ByteArrayOutputStream buffer = new ByteArrayOutputStream();
|
||||
|
||||
int nRead;
|
||||
byte[] data = new byte[512];
|
||||
final int MB = 1048576;
|
||||
|
||||
byte[] data = new byte[MB * 4];
|
||||
|
||||
while ((nRead = fileStream.read(data, 0, data.length)) != -1) {
|
||||
buffer.write(data, 0, nRead);
|
||||
|
Loading…
Reference in New Issue
Block a user