BinaryFormatter in Silverlight

I am building a WCF RIA service used for Silverlight application. I am using BinaryFormatter.Serialize() to serialize my data to binary array before sending back to client side (silver light).

However, Silverlight 4 doesn't support BinaryFormatter yet, could you advise how to deserialize a byte array back to object at client side as BinaryFormatter.Deserialize() does at service side.


-------------Problems Reply------------

I found some links that might help you:

  • Check this project out:
  • Silverlight 3.0 Binary Serialization Support?

    • "In Silverlight, there is no choice if you want to use binary serialization. As there is no BinaryFormatter in Silverlight, the only solution is sharpSerializer."
Category:silverlight Views:1 Time:2011-12-20

Related post

  • What is the easiest way to add compression to WCF in Silverlight? 2008-08-13

    I have a silverlight 2 beta 2 application that accesses a WCF web service. Because of this, it currently can only use basicHttp binding. The webservice will return fairly large amounts of XML data. This seems fairly wasteful from a bandwidth usage st

  • What is the best way to clone a business object in Silverlight? 2008-10-14

    What is the best way to create a clone of a DTO? There is not an ICloneable interface or a BinaryFormatter class in Silverlight. Is reflection the only way? --------------Solutions------------- Here is the code we came up with for cloning. This works

  • What are the deficiencies of the built-in BinaryFormatter based .Net serialization? 2009-03-31

    What are the deficiencies of the built-in BinaryFormatter based .Net serialization? (Performance, flexibility, restrictions) Please accompany your answer with some code if possible. Example: Custom objects being serialized must be decorated with the

  • Silverlight 3.0 Binary Serialization Support? 2009-08-17

    Can I deserialize an object in the Silverlight 3.0 runtime that was serialized using the full .NET 2.0 runtime using the BinaryFormatter? I am using the following code to serialize an object to a ByteArray which we write to a DB table: MemoryStream s

  • convert object(i.e any object like person, employee) to byte[] in silverlight 2010-02-17

    i have a person object and need to store it as byte[] and again retrieve that byte[] and convert to person object and BinaryFormatter is not availabe in silverlight --------------Solutions------------- Because the namespaces mentioned by t0mm13b are

  • binary serialization of types defined in a silverlight assembly 2010-11-20

    I have a silverlight assembly which is referenced by a silverlight application and a ASP.Net application. In the ASP.Net app i need to serialize(Binary) some of the instances of types defined in the silverlight assembly. Can anyone help me with this?

  • Serializing on Desktop, Deserializing in Silverlight 2011-03-27

    I'm trying to create content via a small C# desktop app, and have it appear inside a Silverlight application. (I'm creating plain, ordinary C# objects, and trying to make them easily persist.) The context is a game of some sort, where I have a deskto

  • Serialize a System.Type from WCF service and deserialize from Silverlight client? 2011-04-25

    I am trying to accomplish the task of sending an instance of System.Type from a WCF REST JSON service to a Silverlight client. Although System.Type is marked as Serializable, my WCF service responds with a server error if I attempt to have my Operati

  • Upload binary data with Silverlight 2b2 2008-08-15

    I am trying to upload a file or stream of data to our web server and I cant find a decent way of doing this. I have tried both WebClient and WebRequest both have their problems. WebClient Nice and easy but you do not get any notification that the asy

  • How do I update my UI from within HttpWebRequest.BeginGetRequestStream in Silverlight 2008-08-16

    I am uploading multiple files using the BeginGetRequestStream of HttpWebRequest but I want to update the progress control I have written whilst I post up the data stream. How should this be done, I have tried calling Dispatch.BeginInvoke (as below) f

  • Version detection with Silverlight 2008-08-21

    How can I efficiently and effectively detect the version and, for that matter, any available information about the instance of Silverlight currently running on the browser? --------------Solutions------------- The Silverlight control only has an IsVe

  • Silverlight programatic access to Sony RZ30N Video Feed 2008-08-22

    I would like to bypass the web-server functionality of a Sony SNC-RZ30N network attached web cam and display the video feed in a Silverlight application. I can't seem to find any examples of interfacing with the camera programatically. Any leads woul

  • What is the purpose of the AppManifest.xaml file in Silverlight applications? 2008-08-23

    In opening up the .xap file that is generated as output from a Silverlight application I've been tinkering with lately, I noticed a file called AppManifest.xaml. I've also noticed an option in the property pages for the Silverlight project that appea

  • Custom Attribute Binding in Silverlight 2008-08-24

    I've got two Silverlight Controls in my project, both have properties TeamId. I would like to bind these together in XAML in the control hosting both user controls similar to: <agChat:UserTeams x:Name="oUserTeams" /> <agChat:OnlineUser x:Nam

  • Databind RenderTransform Scaling in Silverlight 2 Beta 2 2008-08-26

    Anyone know if it's possible to databind the ScaleX and ScaleY of a render transform in Silverlight 2 Beta 2? Binding transforms is possible in WPF - But I'm getting an error when setting up my binding in Silverlight through XAML. Perhaps it's possib

  • How to do crossdomain calls from Silverlight? 2008-08-27

    What's needed to succesfully make a crossdomain call from Silverlight? --------------Solutions------------- If I understand your question correctly you would need to have a clientaccesspolicy.xml file in the domain web root of the server that you wis

  • ASP.NET vs. Silverlight 2008-08-28

    I'm starting a new web project and I am considering two presentation frameworks. I am thinking either about ASP.NET MVC or Silverlight. I would tend toward Silverlight since I'm quite experienced .NET developer while I have just a basic knowledge of

  • Image processing in Silverlight 2 2008-08-29

    Is it possible to do image processing in silverlight 2.0? What I want to do is take an image, crop it, and then send the new cropped image up to the server. I know I can fake it by clipping the image, but that only effects the rendering of the image.

  • How to track if browser is Silverlight enabled 2008-09-01

    I'm trying to get some stats on how many of the visitors to our website have Silverlight enabled browsers. We currently use Google Analytics for the rest of our stats so ideally we'd like to just add 'Silverlight enabled' tracking in with the rest of

Copyright (C), All Rights Reserved.

processed in 0.085 (s). 11 q(s)