[nodejs] Re: Advice when using streams, pipe and waiting for metadata

2012-12-15 Thread papandreou
I was in a similar situation about 2 years ago. Given an incoming PUT request with image data I had to save a CouchDB document with the image metadata and attach the image itself as an attachment. This was much easier to get right if the metadata document could be saved first, and the image its

[nodejs] Re: Advice when using streams, pipe and waiting for metadata

2012-12-12 Thread Alexander Shtuchkin
AFAIK, its either buffering, or you can call pause()/resume() to control incoming data flow. Alex. On Wednesday, December 12, 2012 1:27:25 PM UTC+4, Paul Connolley wrote: > > Hi there > > Long time lurker, first time poster. I've been working on a module for the > last couple of weeks as a bit