I am trying to save bitmaps to an mjpeg file using C#. I can save 1 image as a jpeg with
bitmap.Save("filename", System.Drawing.Imaging.ImageFormat.jpeg);
In the above code, bitmap is an object of type System.Drawing.Bitmap.
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.
How to save multiple images in the same file? The file would be using .mjpeg extension instead of .jpeg.
Edit:
Checked Write MJPEG stream to disk but he is trying to save as a memory stream. I want to save it to a mjpeg file.