Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229739

IonicNative File writeExistingFile not working?

$
0
0

It gives me success on this WriteFile API and when I open the file of test.pdf after this function success it gives me error of Invalid Format.

Any who can help me out in this
Here is my code

 this.file.writeFile(cordova.file.externalDataDirectory,"Test.pdf","Hello World",true).then(succ=>{
      console.log("File write success : ", succ)
    },
    err=>{
      console.log(" write File error : ", err)
    })

Viewing all articles
Browse latest Browse all 229739

Trending Articles



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