Details
Description
javascript
document.getElementById("paizhao").addEventListener("click",loadImage); function loadImage() { navigator.camera.getPicture(onLoadImageSuccess, onLoadImageFail, { destinationType: Camera.DestinationType.DATA_URL }); } function onLoadImageSuccess(imageURI) { var src = "data:image/jpeg;base64," + imageURI; document.getElementById("getImage").src =src; } function onLoadImageFail(message) { navigator.notification.alert("error:" + message, null, ""); }
<p> <input type="button" value="phone" id='paizhao' /> <img src="" id="getImage" style="width: 120px;height: 120px;"/> </p>
Listen to the incident, tell me exposed beyond app through ClipDate.ltem.getURI () how to solve?
This question bothered me for a long time, hoping to get your help, thank you