Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

220
Views
How do I get an image to postman using Express.js?

I have some jpeg and png photos in my local machine. How do i show them on my postman using express.js?

Do I use sendFile?

And is it possible to print more than one photo?

Here is a template

app = require("express")();

app.get("/", (req, res) => {

res.send("I want to send the image here")

})

Same Question as How do I get image/file data on postman using get method?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

One simple way to do this is to serve the files statically by using express static middleware.

Assuming your images reside in a uploads folder in your app's root, you'd simply add to your express app:

app.use("/uploads", express.static('uploads'))

You can then request it through postman/browser with GET http://your-host/uploads/name-of-image.png.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!