title: How can I pipe a file using multer to Google Cloud Storage?
body: <p>I'm doing:</p>
  
  <pre><code>    const fileId = uuidv4()
      console.log(process.env.GOOGLE_PRIVATE_KEY)
      const storage = new GoogleCloudStorage({
          projectId: process.env.GOOGLE_RAW_AUDIO_BUCKET,
          credentials: {
              client_email: process.env.GOOGLE_CLIENT_EMAIL,
              private_key: process.env.GOOGLE_PRIVATE_KEY.replace(/\\n/g, '\n')
          }
      });
  
      const bucket = storage.bucket(process.env.GOOGLE_RAW_AUDIO_BUCKET);
      const blob = bucket.file(fileId + 'mp3');
      const blobStream = blob.createWriteStream()
  
      console.log(req.file)
  
      // var readableStream = fs.createReadStream(req.file.path);
      fs.createReadStream(req.file.buffer).pipe(blobStream)
  </code></pre>
  
  <p>But I get an error:</p>
  
  <pre><code>TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes. Received &lt;Buffer ff f3 38 c4 00 00 00 03 48 00 00 00 00 4c 41 4d 45 33 2e 39 39 2e 35 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 55 ..
  </code></pre>
  
  <p>Using <code>multer</code> and <code>express</code>. But I can't figure out how to stream from multer to GCS. Any tips would be greatly appreciated?</p>