9
0
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:
Christophe BOUCAUT
2014-12-29 12:04:58 +01:00
parent 0c1c26addd
commit 83fc7f1c9e
3 changed files with 114 additions and 146 deletions
+1 -5
View File
@@ -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);