[–] maxogden 14y ago ↗ the most misunderstood part of node. thanks for helping make it understandable
[–] farhanpatel 14y ago ↗ Could someone please enlighten me on how to connect both a readable and a writable stream.For example I want to convert an image and then stream it to S3.if I use knox https://github.com/LearnBoost/knox it has a way to read a stream from a file and then publish to s3.But how can you take a stream from http://aheckmann.github.com/gm/ and stream it directly to knox or anything else for that matter? [–] jdub 14y ago ↗ Take a look at the pipe() method. :-) [–] dominictarr 14y ago ↗ something like gm(knox.getStream(...)).write(knox.putStream(...)) unfortunately gm doesn't expose it's streams nicely, so you have to pass them in.
[–] dominictarr 14y ago ↗ something like gm(knox.getStream(...)).write(knox.putStream(...)) unfortunately gm doesn't expose it's streams nicely, so you have to pass them in.
5 comments
[ 1.3 ms ] story [ 24.0 ms ] threadFor example I want to convert an image and then stream it to S3.
if I use knox https://github.com/LearnBoost/knox it has a way to read a stream from a file and then publish to s3.
But how can you take a stream from http://aheckmann.github.com/gm/ and stream it directly to knox or anything else for that matter?