Read binary data from Console.In
<p>Is there any way to read binary data from stdin in C#?</p>

<p>In my problem I have a program which is started and receives binary data on stdin. 
Basically:
    <code>C:&gt;myImageReader &lt; someImage.jpg</code></p>

<p>And I would like to write a program like:</p>

<pre><code>static class Program
{
    static void Main()
    {
        Image img = new Bitmap(Console.In);
        ShowImage(img);
    }
}
</code></pre>

<p>However Console.In is not a Stream, it's a TextReader.
(And if I attempt to read to char[], the TextReader interprets the data, not allowing me to get access to the raw bytes.)</p>

<p>Anyone got a good idea on how get access to the actual binary input?</p>

<p>Cheers,
Leif</p>
