@vishnurevolve wrote:
Hi Guys..
I just try to save the data string(data:image/png;base64) formated.But i get an error says "Error while saving image" .This the callback error from window.imageSaver.saveBase64Image();
here is the my codevar params = {data: base64Data, prefix: 'coupon_', format: 'JPG', quality: 80, mediaScanner: true}; window.imageSaver.saveBase64Image(params, function (filePath) { console.log('File saved on ' + filePath); }, function (msg) { console.error(msg); } );
Im also tried this too.But shows the same error "Error while saving image"
cordova.base64ToGallery( base64Data, { prefix: 'img_', mediaScanner: true }, function(path) { console.log(path); }, function(err) { console.error(err); } );
What does this error means? Anybody can help me?
Posts: 1
Participants: 1