mirror of
https://gitee.com/shuto/cordova-imagePicker.git
synced 2026-04-16 00:02:54 +08:00
based on outputType option, add base64 string or file uri to output list
This commit is contained in:
@@ -540,8 +540,12 @@ public class MultiImageChooserActivity extends Activity implements OnItemClickLi
|
||||
}
|
||||
}
|
||||
|
||||
file = this.storeImage(bmp, file.getName());
|
||||
al.add(Uri.fromFile(file).toString());
|
||||
if(output == OutputType.FILE_URI) {
|
||||
file = this.storeImage(bmp, file.getName());
|
||||
al.add(Uri.fromFile(file).toString());
|
||||
} else if (output == OutputType.BASE64_STRING){
|
||||
al.add(getBase64OfImage(bmp));
|
||||
}
|
||||
}
|
||||
return al;
|
||||
} catch(IOException e) {
|
||||
|
||||
Reference in New Issue
Block a user