|
|
|
Phonegap จะถ่ายรูปแล้ว move ไฟล์รูป ลงในโทรศัพท์อ่ะครับ ทำยังงัยครับ |
|
|
|
|
|
|
|
function capturePhoto(){
navigator.camera.getPicture(uploadPhoto,null,{sourceType:1,quality:60});
}
function uploadPhoto(data){
window.resolveLocalFileSystemURI(data, onResolveSuccess, fail);
cameraPic.src = "data:image/jpeg;base64," + data;
);
}
function onResolveSuccess(fileEntry) {
var parent = "file:///mnt/",
parentEntry = new DirectoryEntry({fullPath: parent});
alert(parent);
alert(parentEntry);
alert(fileEntry.name);
fileEntry.moveTo(parentEntry,fileEntry.name,successxx,failxx);
}
function successxx(entry) {
alert("New Path: " + entry.fullPath);
}
function failxx(error) {
alert(error.code);
}
|
ประวัติการแก้ไข 2013-05-10 19:31:58 2013-05-10 19:41:41
|
|
|
|
Date :
2013-05-10 19:31:03 |
By :
wsanfc |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 00
|