How to display the .PNG file inside HTML component?

Yes, it should work everywhere. The idea is that you are providing the actual bytes within the HTML, which should always work for displaying pictures, making a file download button and other things like that.