title: Creating readStream for file in Firebase Storage
body: <p>Readstreams for firebase storage:</p>
  
  <p>I have files in my Google firebase storage for which I want to create a read stream (using javascript/node js). (I then intend to pipe this read stream to some middleware and then a write stream, but this is unimportant for the question.) The code snippet shows what I'm doing, but when I print the readStream to console I get a DestroyableTransform object instead of a ReadableStream. I feel like my code is very similar to the <a href="https://cloud.google.com/nodejs/docs/reference/storage/1.7.x/File#createReadStream" rel="nofollow noreferrer">documentation</a>. Does anyone know what might be wrong? </p>
  
  <pre><code>const filePath = 'image.png';
  const getReadStream = (filePath) =&gt; {
      let file;
      try {
          file = admin
              .storage()
              .bucket()
              .file(filePath);
      } catch (err) {
          console.log(err);
      }
      const readStream = file.createReadStream()
          .on('error', (err) =&gt; {
              throw err;
          });
      console.log(readStream);
      return readStream;
  };
  </code></pre>