javascript - PhoneGap show downloaded image in iframe -
i have phonegap application in need download images offline usage , show inside iframe. possible , need corhttpd (https://github.com/floatinghotpot/cordova-httpd) serve assets locally?
i have been trying store files on file system when try show (even without being inside iframe), doesn't show. seem loaded (can seen in network console in remote debugging), though, (of course) without headers.
after spending more , more time on , settings gapdebug correctly remote debug application, able solve problem giving
{responsetype: "arraybuffer"}
to angularjs's $http.get method config parameter described here. able images arraybuffer correctly , there base64 encode them added inside html stored offline. suitable solution case @ least..
Comments
Post a Comment