Skip to main content

Microsoft Silverlight

Answered Question Trouble sending a Stream variable through a WCF ServiceRSS Feed

(0)

Cooxter
Cooxter

Member

Member

8 points

6 Posts

Trouble sending a Stream variable through a WCF Service

For my silverlight application i have written a service that extracts data from a database. I am using a custom class that represents the data returned by a query. Everything was working fine until i decided to add a Stream variable to the class. This caused the proxy method (that returns the class object) to start crashing my silverlight application, the wcftestclient couldn't test the method either.

I am quite sure that it's a problem with the fact that it's a Stream, in an act of desperation i changed the variable into a String and everything worked perfectly fine.

What was also weird is when i tried to call the method from a test website (not throught the service), it worked fine and returned a Stream without a problem. The problem started, as stated above, when i tried calling it from the silverlight application (which is btw. in the same domain).

 So my question is: Is there some other way that you need to set up the DataMembers/Contracts/Serialization to make the Streams work.. or maybe it's a case of setting up the transferMode in the web.config and not just leaving it at default basicHttpBinding.

Allen Chen – MSFT
Allen Ch...

Star

Star

13862 points

1,803 Posts

Answered Question

Re: Trouble sending a Stream variable through a WCF Service

Hi:

  Streaming in WCF is not supported in current version.

Regards

Sincerely,
Allen Chen
Microsoft Online Community Support

Please remember to mark the replies as answers if they help and unmark them if they provide no help.
  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities