title: How to create a readstream with a buffer using Node.js
body: <p>I have this json: </p>
  
  <pre><code>var myJSON = '{"kind": "person", "fullName": "Rivka3"}';
  </code></pre>
  
  <p>I'm trying to uploed it to bigquery, using createReadStream.
  when I save it localy I succeed:</p>
  
  <pre><code>fs.writeFile("/tmp/bq_json_file_new.json", myJSON, function(err){});
  fs.createReadStream("/tmp/bq_json_file_new.json")
    .pipe(table.createWriteStream(metadata))
    .on('complete', function(job) {
      job
        .on('error', console.log)
        .on('complete', function(metadata) {
          console.log('job completed', metadata);
        });
    });
  </code></pre>
  
  <p>now I'm trying to do this without saving it localy - using a buffer:</p>
  
  <pre><code>fs.createReadStream(new Buffer(myJSON, "utf8"))
    .pipe(table.createWriteStream(metadata))
    .on('complete', function(job) {
      job
        .on('error', console.log)
        .on('complete', function(metadata) {
          console.log('job completed', metadata);
        });
    });
  </code></pre>
  
  <p>but i recieve this error:</p>
  
  <pre><code>fs.js:575
    binding.open(pathModule._makeLong(path),
  
  TypeError: path must be a string
  </code></pre>