title: fo-dicom JPEG Image Compression from MemoryStream
body: <p>I am looking to load a dicom image and save it to a jpeg, as seen in the below code from fo-dicom documentation:</p>
  
  <pre><code>var image = new DicomImage(@"test.dcm");
  image.RenderImage().AsBitmap().Save(@"test.jpg");      
  </code></pre>
  
  <p>However, I am opening the dicom file from a MemoryStream, and I would like to save the jpeg as a byte array. Is this possible with fo-dicom?</p>