Answer the question
In order to leave comments, you need to log in
How to access image in NodeJs/Express server?
Good afternoon.
There is a simple server structure:
- src
- - data
- - - images
- - - - 1.jpg
- - - - 2.jpg
- - - - 3.jpg
What needs to be done. so that when the server is running, typing in the address bar for example:
localhost:4006/images/1.jpg
See the picture?
You don't need to download it, just display it. You need to display it on the client.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question