The foreground page needs to show static resources (pictures) on the node server. How to implement it?

  node.js, question

The foreground page needs to show static resources (pictures) on the node server.
With a < img src= “”> tag, I access the returned binary data like a picture through the browser address, and the browser displays the garbled code.
The address of the picture and some corresponding data are stored in the database. When I show them at the front desk, I need to get these data and show the corresponding picture.
Please give me a guide! !

Is there no framework like express?
If not,
After reading the file with fs, add the correct MIME type before the output
response.writeHead(200, {‘Content-Type’: ‘image/jpeg’});