I have a logo that is residing at the public/images/logo.gif. Here is my nodejs code.
public/images/logo.gif
http.createServer(function(req, res){ res.writeHead(200,
var http = require('http'); var fs = require('fs'); http.createServer(function(req, res) { res.writeHead(200,{'content-type':'image/jpg'}); fs.createReadStream('./image/demo.jpg').pipe(res); }).listen(3000); console.log('server running at 3000');