title: download file with request module and pass result to response in meteor and node.js
body: <p>I want to download file without saving on disk and pass file content to response. Really I want to get file as stream and then pass it to response and client can download file.
  for example with below Pseudo-code (with <a href="https://github.com/iron-meteor/iron-router" rel="nofollow">iron-router</a>, <a href="http://meteor.com/" rel="nofollow">meteor</a>, <a href="https://github.com/request/request" rel="nofollow">request</a>):</p>
  
  <pre><code>Router.route('/file/download', function() {
      var res = this.response;
      var query = this.params.query;
      var id = query.id;
  
      var request = Meteor.npmRequire('request');
      var future = new (Npm.require('fibers/future'))();
  
      request('http://myFileHosting.com/files/download?id='+ id, function (error, response, fileContent) {
          if (!error &amp;&amp; response.statusCode == 200) {
              future.return(fileContent);
          }
          else
          {
              future.throw(error);
              console.log(error);
          }
      });
  
      var fileContent = future.wait();
  
      res.end(fileContent);
  }, { where: 'server' });
  </code></pre>
  
  <p>How to do this?</p>
  
  <p><strong>What is the real solution for pass file to response on the fly without download on disk?</strong></p>