简体   繁体   中英

Stream to a URL with node.js

I know that a file can be transferred using a post request (say using node-fetch ). How do I go about streaming a file (as input is piped into it) in node.js to a URL (say http://example.com/listen ) where a service will process the incoming stream? Is there a simple library which offers a pipe to address functionality?

I know that a file can be transferred using a post request (say using node-fetch ). How do I go about streaming a file (as input is piped into it) in node.js to a URL (say http://example.com/listen ) where a service will process the incoming stream? Is there a simple library which offers a pipe to address functionality?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM