In a Windows Runtime Application, I have a javascript File object created from a Javascript Blob object and it's respective mime type.
The end goal is to open this file using the default windows application (or prompt the user to choose one). So PDF's would be opened by Adobe, ect.
At the moment, I am:
- Creating the File object from the blob, a date object, and the mime
- Getting the Install Directory for the Windows Application and Creating a new File there
- Opening that windows file and writing my javascript-created-blob-file to it.
- Opening that finished windows file with Windows.System.Launcher.launchFileAsync() and having it launch the file with the proper application.
Is there any way to eliminate any of these steps? It seems redundant to save a file and open it back up when it feels like I could just "open" the file in the first place, but I don't see any documentation from Microsoft about how to just open a javascript file.