title: How to read or get image file from local folder(disk storage) and send it to Angularjs using nodejs server?
body: <p>I've been trying to get a image file from my folder and give it to my Angular UI using Node server, nodejs reads the image file as buffer format but how to send it to angular code? and how to use it in html page?</p>
  
  <p>HTML</p>
  
  <p><code>&lt;img class="img img-thumbnail img-responsive" ng-src="{{imager}}"/&gt;</code></p>
  
  <p>Angular code:</p>
  
  <pre><code>$http.get("/getimages").success(function(data) {
      $scope.imager=$parse(data);
  }).error(function(data) {
      console.log(data)
  });
  </code></pre>
  
  <p>Node server code:</p>
  
  <pre><code>app.get("/getimages",function(req,res) {
      var myfiles=fs.readFileSync("./fromnode/image1.jpg");
      res.writeHead(200, {'Content-Type': 'image/jpg' });
      res.end(myfiles, 'binary');
  });
  </code></pre>