I'm trying to load a image at runtime from memory stream. The stream itself is from byte array obtained from C++ DLL of a DICOM image. I'm trying to set the stream to the bitmap object & then load the image to the image control. See code snippet below
I always get the error No imaging component suitable to complete this operation was found.
BitmapImage bi = new BitmapImage();
bi.BeginInit();
Stream ms = new MemoryStream(abyteArray0);
ms.Seek(0, SeekOrigin.Begin);
bi.StreamSource = ms;
bi.EndInit();
img.Source = bi;
Please help!!!
Thanks,
Rajeev