Quantcast
Channel: Ionic Framework - Ionic Forum
Viewing all articles
Browse latest Browse all 49246

JPEG file not opening after creating it with Writefile Api

$
0
0

@ShehramTahir wrote:

I am creating a JPEG image with writeFile.

It is giving me success on this and creating an jpeg image in the directory.

But when I open that file manually by going into that directory it gives me error that

"Oops! Couldn't load this image"

this.file.writeFile(cordova.file.externalDataDirectory,"image.jpeg","",true).then(succ=>{
               console.log("File Write : ",succ)
},err=>{
             console.log("File Write Error : ",err)
})

How can I solve this problem or any one can guide me what is the other method to create an jpeg image in ionic.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 49246

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>