title: Not able to use 7-Zip to compress stdin and output with stdout?
body: <p>I get the error "Not implemented".</p>
  
  <p>I want to compress a file using <a href="http://en.wikipedia.org/wiki/7-Zip" rel="nofollow noreferrer">7-Zip</a> via stdin then take the data via stdout and do more conversions with my application. In the <a href="http://pwet.fr/man/linux/commandes/7z" rel="nofollow noreferrer">man page</a> it shows this example:</p>
  
  <p><a href="http://pwet.fr/man/linux/commandes/7z" rel="nofollow noreferrer">% echo foo | 7z a dummy -tgzip -si -so > /dev/null</a></p>
  
  <p>I am using Windows and C#.</p>
  
  <p>Results:</p>
  
  <pre><code>7-Zip 4.65  Copyright (c) 1999-2009 Igor Pavlov  2009-02-03
  Creating archive StdOut
  
  System error:
  Not implemented
  </code></pre>
  
  <p>Code:</p>
  
  <pre><code>public static byte[] a7zipBuf(byte[] b)
  {
      string line;
      var p = new Process();
      line = string.Format("a dummy -t7z -si -so ");
      p.StartInfo.Arguments = line;
      p.StartInfo.FileName = @"C:\Program Files\7-Zip\7z.exe";
      p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
  
      p.StartInfo.CreateNoWindow = true;
      p.StartInfo.UseShellExecute = false;
      p.StartInfo.RedirectStandardOutput = true;
      p.StartInfo.RedirectStandardError = true;
      p.StartInfo.RedirectStandardInput = true;
  
      p.Start();
  
      p.StandardInput.BaseStream.Write(b, 0, b.Length);
      p.StandardInput.Close();
      Console.Write(p.StandardError.ReadToEnd());
      //Console.Write(p.StandardOutput.ReadToEnd());
  
      return p.StandardOutput.BaseStream.ReadFully();
  }
  </code></pre>
  
  <p>Is there another simple way to read the file into memory? </p>
  
  <p>Right now I can 1) write to a temporary file and read (easy and can copy/paste some code) 2) use a file pipe (medium? I have never done it) 3) Something else.</p>