comment imprimer une image dans Phonegap

Je prends des photos dans le premier code. Dans l’autre code, je veux l’imprimer. Mais l’image n’apparaît pas sur l’écran d’impression. Pourquoi ?

navigator.camera.getPicture(onSuccess, onError, { quality: 100, destinationType: Camera.DestinationType.FILE_URL, sourceType: Camera.PictureSourceType.CAMERA, mediaType: Camera.MediaType.PICTURE, saveToPhotoAlbum:true, //targetWidth:200 , //targetHeight: 200, correctOrientation: true, allowEdit:true }); function onSuccess(imageData) { image=document.getElementById("myImage"); image.src = imageData; path = image.src; } printt: function () { window.plugin.printer.print(image); },