I have successfully compiled a JS program from C++ files using emscripten, and it generates a PNG file.
The program is now being loaded and run in an HTML file.
However, I am facing a challenge in displaying the generated PNG file within this HTML file. Emscripten utilizes an emulated sandboxed filesystem, and my PNG file ends up being stored in this filesystem.
What is the best way to retrieve this file and display it in the HTML file?