diff --git a/src/android/CameraLauncher.java b/src/android/CameraLauncher.java index af16b8a3f..f960ea582 100644 --- a/src/android/CameraLauncher.java +++ b/src/android/CameraLauncher.java @@ -786,7 +786,9 @@ private void processResultFromGallery(int destType, Intent intent) { 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);