title: Save bitmaps to a mjpeg file using C#
body: <p>I am trying to save bitmaps to an mjpeg file using C#.
  I can save 1 image as a jpeg with  </p>
  
  <pre><code>bitmap.Save("filename", System.Drawing.Imaging.ImageFormat.jpeg);
  </code></pre>
  
  <p>In the above code, <strong>bitmap is an object of type System.Drawing.Bitmap</strong>.</p>
  
  <p>I am parsing the images from another file (of custom format) or camera and want to pass them in mjpeg form to WCF. As a first step, I am trying to save mjpeg file.</p>
  
  <p>How to save multiple images in the same file? The file would be using .mjpeg extension instead of .jpeg.</p>
  
  <p>Edit:</p>
  
  <p>Checked <a href="https://stackoverflow.com/questions/4658742/write-mjpeg-stream-to-disk">Write MJPEG stream to disk</a> but he is trying to save as a memory stream. I want to save it to a mjpeg file.</p>