I am using electron for building a Desktop App.The App is using some java code that is generating a QRCode and placing it in a file in file-system in the same directory as that of the application code. I use a button to load the image from file system using the img tag with the help of javascipt as follows :
document.getElementById('QRCodeImage').src = "./QRCodeTest.png";
The problem is when the java code is again refreshing the image it is not reflecting in the app and still showing the previous image.Please Help!!
PS: I am using nodejs eventemitter.emit to publish the event to load the image from file system.