How can I open data:image in browser from node-webkit app? <p>I am using Node-Webkit for making an image enhancement app. I have a download button clicking on which executes the following.</p> <pre><code> document.getElementById("download").onclick = function(){ var c = Caman("canvas"); if(file.type.replace("image/","")=="jpeg"){ //save as jpeg c.save('jpeg'); } else { //saves as png by default c.save(); } } } </code></pre> <p>This function is supposed to download the image if run in browser, but the download doesn't work in the Node-Webkit app. </p> <p>So, I want to make it function to open the data:image in default browser so that I can save image from the browser, but I have no idea how to do that. Can anyone help me with this?</p> <p>Thanks.</p>