I am trying to display multiple file formats on both android and iOS devices, this includes PDF, Excel, Word, Power Point, and .txt files.
I can get all of these different file formats to display in iOS devices using data uri
for instance if I wanted to display a pdf file, I'd call the following:
window.open('data:application/pdf;base64,' + base64pdfdatastring, '_blank');
however none of the file formats worked except for text, which is formatted in exactly the same way:
window.open('data:text/plain;base64,' + base64textdatastring, '_blank');
These files could potentially contain sensitive information, so google doc is not a valid solution.
How do I get android to display data uri correctly?
Thanks