Again the problem is that this is related to web-framework you are building,which you are not mentioning.
There is different use case from a web-framework that user just open a image in browser.
web-framework serve(not open) static files for eg a folder
Then bind images path to root url,here a example in Flask.
In example over the link would be
For low level close to WSGI look what's under Flaskl,Werkzeug Serve Shared Static Files
There is different use case from a web-framework that user just open a image in browser.
web-framework serve(not open) static files for eg a folder
static/images
.Then bind images path to root url,here a example in Flask.
In example over the link would be
http://127.0.0.1:5000/Joker.png
.For low level close to WSGI look what's under Flaskl,Werkzeug Serve Shared Static Files