I am looking to load a dicom image and save it to a jpeg, as seen in the below code from fo-dicom documentation:
var image = new DicomImage(@"test.dcm");
image.RenderImage().AsBitmap().Save(@"test.jpg");
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?