From: Wybo Dekker Date: 2005-06-24T15:57:58+09:00 Subject: Re: reading binary from STDIN in windows On Fri, 24 Jun 2005, Shashank Date wrote: > Try this: > > ruby -e 'STDIN.binmode;i=STDIN.read; > open("test.pdf","wb").write(i)' < some.pdf > > Notice how binmode sets the binary mode. that works, thanks! (I had been scanning STDIN's available methods but missed it...) -- Wybo