I am doing a project in which a built in class for DICOM giving me the ImageSource
,I want to use that ImageSource
in My silverlight Image
control. This conversion I am doing through WCF services. I found WCF does not support ImageSource
, so I need to convert the output of built in class into Image or else in byte[]. So that I can send that output to Silverlight and in Silverlight client I'll reconvert it to ImageSource and can assign it to Image Control easily.
I googled for this but I did not find any help in there. Can anybody help me to fix this problem or provide me any alternate solution for this. Any help will be appreciated, Thanks in advance.
Note:- I do not have any permission for code modification on the built in class. As its a third party library.
UPDATE:-
Brief Description:
I have a class let say GetImageSource
and in that I have a method say giveImgSource()
. Now my questions is:
In WCF I have to call this method and after getting ImageSource
from this method I need to pass it to my silverlight Client. As WCF doesn't know about ImageSource
, so I need to convert the output of this method to some one out of the following or any alternate if you knows:
byte[]
Image
FileStream
MemoryStream etc