At runtime we may have file coming from sources like Web Cam. This is not a file at that point in time. It is just a stream. Now, if I am into a HTML WinJS app how can I add it?
Let’s you have a file with “myFile”.
//Make the temporary URL (HTML5)//This URL is valid only within the contextvar url = URL.createObjectURL(myFile);var img = document.createElement("img");//Then add the URL as srcimg.src = url;