Skip to content

Commit

Permalink
apacheGH-420 (all) DATA_URL is improperly prefixed
Browse files Browse the repository at this point in the history
  • Loading branch information
hazems committed May 9, 2019
1 parent b849328 commit 0cc0897
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/android/CameraLauncher.java
Original file line number Diff line number Diff line change
Expand Up @@ -1271,13 +1271,13 @@ public void processPicture(Bitmap bitmap, int encodingType) {
byte[] output = Base64.encode(code, Base64.NO_WRAP);
String js_out = new String(output);
String base64Prefix = "data:" + imageMimeType + ";base64,";
String final_js_out = base64Prefix + js_out;
String finalJsOut = base64Prefix + js_out;

this.callbackContext.success(final_js_out);
this.callbackContext.success(finalJsOut);

js_out = null;
base64Prefix = null;
final_js_out = null;
finalJsOut = null;
output = null;
code = null;
}
Expand Down

0 comments on commit 0cc0897

Please sign in to comment.