我需要将捕获的图像保存在照片库中。我试图在图像标签内显示捕获的图像。
handler : function(button, event) {
Ext.device.Camera.capture({
source : 'camera',
destination : 'data',
quality: 100,
width: 300,
height: 300,
success : function(imagedata) {
var img = Ext.getCmp('largeImage');
img.setSrc('data:image/jpeg;base64,' + imagedata);
},
failure : function() {
Ext.Msg
.alert('Error',
'There was an error when acquiring the picture.');
},
scope : this
});
}