mirror of
https://gitee.com/shuto/customCamera.git
synced 2026-05-02 00:07:24 +08:00
Refacto en incluant la méthode displayPicture() + constante sur les degrés de rotation + utilisation CORRECTE de transferBigData.
This commit is contained in:
@@ -78,12 +78,8 @@ public class CameraLauncher extends CordovaPlugin {
|
||||
);
|
||||
break;
|
||||
case CameraLauncher.RESULT_SUCCESS:
|
||||
String pathPicture = intent.getStringExtra("pathPicture");
|
||||
try {
|
||||
File fl = new File(pathPicture);
|
||||
byte[] ret = loadFile(fl);
|
||||
|
||||
byte[] output = Base64.encode(ret, Base64.NO_WRAP);
|
||||
byte[] output = Base64.encode(TransferBigData.getImgTaken(), Base64.NO_WRAP);
|
||||
String js_out = new String(output);
|
||||
|
||||
this.callbackContext.success(js_out);
|
||||
|
||||
Reference in New Issue
Block a user