Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

nodejs express return image

var filepath = '~/path/to/file.png'

app.get('/path/for/site', function (req, res) {
    res.sendFile(filepath);
})
 
PREVIOUS NEXT
Tagged: #nodejs #express #return #image
ADD COMMENT
Topic
Name
8+9 =