How to accept Node.js stream and send it to create an endpoint (dropbox)

I have a readable stream (s3) that I would like to transfer to the Dropbox endpoint, but this does not support Transfer-Encoding: chunked , necessary for streaming data.

I see 2 possible solutions

  • read the stream into a variable of some kind, then send, memory may be a problem
  • write the stream to disk, then read it and load what seems dirty and will be slow.

What is the best solution to this problem?

+4
source share

All Articles