Click here to Skip to main content
15,879,613 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have successfully implemented image library PhoneGap app which company users use to view our company published photos. In there I have implemented a feature, when you click an hold on the image then the image will be saved on Camara Roll of the mobile device. For implementing that I used the Phonegap plugin Canvas2ImagePlugin[^]

It was working fine. Recently, I have enabled image caching on the server (IIS 7.5 Output Cashing - added extension .png and .jpg ).

Then suddenly that feature stopped working. Further checking I have found that Canvas2Image plugin uses following method to get the image data from the URL. And after enabling Output caching, imageData is always empty.

JavaScript
var imageData = canvas.toDataURL().replace(/data:image\/png;base64,/,'');


Can anyone experienced this before? Can you please help me to resolve this?
Posted
Comments
Tharaka MTR 10-Dec-13 23:19pm    
Any comments? :(

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900