Hello,
I have a base64 encoded stream of bytes, which I need to put in a Dicom image. So I create a bitmap from the Convert.FromBase64String(base64) byte array and then I retrieve the byte[] from the bitmap. Finally, I add this byte[] to a DicomPixelData instance using a MemoryByteBuffer. All works well, I can properly see the DICOM image in a DICOM viewer.
Now I want to convert the base64 stream of bytes to JPEG. Could you please provide an fo-dicom code snippet on how to do that ? So, in short, I need again a DICOM image, but with the image pixels compressed.
Thanks,
Greetings,
Sorin