There is an api in Express.
res.sendFile
app.get('/report/:chart_id/:user_id', function (req, res) {
// res.sendFile(filepath);
});
More Related Contents:
- How to upload, display and save images using node.js and express [closed]
- How can I save a base64-encoded image to disk?
- Uploading images using Node.js, Express, and Mongoose
- how express forming the img URL
- How to share sessions with Socket.IO 1.x and Express 4.x?
- What does body-parser do with express?
- How to generate a Dockerfile from an image?
- How to include route handlers in multiple files in Express? [duplicate]
- How to redirect 404 errors to a page in ExpressJS?
- npm WARN package.json: No repository field
- socket.io and session?
- SyntaxError: Unexpected token function – Async Await Nodejs
- How do I use HTML as the view engine in Express?
- How do you send images to node js with Axios?
- What is the difference between res.end() and res.send()?
- Express next function, what is it really for?
- SVG. Reverse image using css. Keep image at the same place
- Redirecting to previous page after authentication in node.js using passport.js
- Algorithm to detect presence of text on image
- Find local maxima in grayscale image using OpenCV
- How to send a pdf file from Node/Express app to the browser
- How do I stream response in express?
- What does “res.render” do, and what does the html file look like?
- Model.find() returns empty in mongoose [duplicate]
- How to decipher string in node js which is encrypted in crypto js in javascript
- How to use socket.io in express routes?
- Express Router undefined params with router.use when split across files
- Connect or Express middleware to modify the response.body [closed]
- CORS-enabled server not denying requests
- Using multiple parameters in URL in express