deserialize issue casting Programming Software Development by jlivvers …and have an intersting problem. The project attempts to deserialize a type 'Client' into a new 'Client'.… { BinaryFormatter bin = new BinaryFormatter(); mainClient = (Client)bin.Deserialize(stream); } [/CODE] this throws the error "Unable to… Deserialize Issue Programming Software Development by venet …'m getting an error when trying to deserialize my XML file. The error message is…obs = (List<Objects>)serializer.Deserialize(reader); reader.Dispose(); return obs; } … deserialize JASon object in asp.net C# Programming Web Development by anisha.silva … i am getting from a API access. how do i deserialize the jason object in C# so that I can get… the papameter values. JavaScriptSerializer js = new JavaScriptSerializer(); bookshare bs = js.Deserialize<bookshare>(response); string a = bs.version; when i… Re: deserialize JASon object in asp.net C# Programming Web Development by anisha.silva … the code as: JavaScriptSerializer js = new JavaScriptSerializer(); bookshare bs = js.Deserialize<bookshare>(response); string a = bs.version; appreciate a… Deserialize Array From Database Programming Software Development by sbanks_charles … field data of my 2 Dimensional Array, how do I deserialize? Once again, I tried to resarch this so would appreciate… deserialize json result in vb.net Programming Software Development by Learner010 … vb.net . So , i don't have any idea to deserialize the JSON result. would you please explain how can i… Re: How to deserialize binary stream Programming Software Development by Lerner … these: const string record::serialize(); void record::deserialize(char *); to these: const string serialize(); void deserialize(char *); Why aren't you using… STL strings throughout? You can deserialize() by parsing as reading in as I suggested or by… Serialize/Deserialize list of objects Programming Software Development by Azurit …> called shapes which I want to Serialize/Deserialize. I think I got the Serialization right: [CODE…)) { BinaryFormatter bf = new BinaryFormatter(); shapes = (IBGSDraw)bf.Deserialize(input); } } }[/CODE] There is some problemt with line … Re: Help on Deserialize error Programming Software Development by renzlo …methodCallMessage) at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream, HeaderHandler handler, Boolean fCheck, …at System.Runtime.Serialization.Formatters.Binary.BinaryFormatter.Deserialize(Stream serializationStream) at MagnaToolsLib.CodeBookLibrary.Tools.ImportExportCodeBook… Re: How to deserialize binary stream Programming Software Development by thekevin07 … *,fstream &); const string record::serialize(); double cost; void record::deserialize(char *); private: char * name; int idx; int partNo; int quantity… <<'|'<< idx; return out.str(); } void record::deserialize(char * s) { stringstream in; in.getline(s,strlen(s),'|'); cout… Re: Serialize/Deserialize list of objects Programming Software Development by code78 …)) { BinaryFormatter bf = new BinaryFormatter(); MyProject = (clsProject) bf.Deserialize(input); } } catch (IOException) { //Error } How to deserialize binary stream Programming Software Development by thekevin07 … my question is how do i read that data in, deserialize it, extract it and assign each of the values into… Help on Deserialize error Programming Software Development by renzlo … = New Runtime.Serialization.Formatters.Binary.BinaryFormatter Me.Question = DirectCast(formatter.Deserialize(FileStream), UI.Tools.QuestionCollections) Return Me.Question End Using End… Rest webservice cannot deserialize date Programming Software Development by samantha2015 … library java.util.date. Am getting this error : Can not deserialize instance of java.util.Date out of START_OBJECT token If… Re: deserialize issue casting Programming Software Development by kvprajapati Have a look at this thread - [URL="http://www.daniweb.com/forums/post1443144.html#post1443144"]Deserializing in a different assembly[/URL] Re: Deserialize Issue Programming Software Development by venet never mind. turns out you need to say <ArrayOfObjects> in the xml file.. Re: deserialize JASon object in asp.net C# Programming Web Development by pritaeas [Here](https://atsung.wordpress.com/2008/08/07/javascriptserializer-example/) is an example. Can you show what is in `response` and how the class definition of `bookshare` looks? Re: deserialize JASon object in asp.net C# Programming Web Development by pritaeas Show the class definition of `bookshare` too. Re: deserialize JASon object in asp.net C# Programming Web Development by anisha.silva Bookshare.cs public class bookshare { public string version { set; get;} public string messages { set; get;} public book b = new book(); public bookshare() { } } book.cs public class book { public metadata m = new metadata(); public … Re: deserialize json result in vb.net Programming Software Development by pritaeas It would've more helpful if you had added this to your original thread, I don't browse this forum very often. I already pointed you to this tool twice: https://json.codeplex.com/ Re: deserialize json result in vb.net Programming Software Development by Learner010 > It would've more helpful if you had added this to your original thread sorry for that. I thought that asking more questions in a single thread is not suitable , it will overload a thread. thats why i decided to create a new thread. ok. i check the link. Deserialize different types of objects from a NetworkStream Programming Software Development by Ossehaas Hi, I have a question. I'm studying MCTS Application Development Foundation .NET 2.0 VB and I have a Server - Client Messenger app to exchange text. One NetworkStream is used both for reading and writing the strings. Now I want to exchange different types of objects to and from the server, (like a registration object, a profile object or maybe … Re: Serialize/Deserialize list of objects Programming Software Development by nick.crane At first glance your code seems fine. (Except for the lack of error handling.) What errors are you getting? What is "IBGSDraw"? The cast should be of the same type as shapes. Which, from how you described you structures, I presume is List<IDraw>. Is IBGSDraw of type List<IDraw>? Re: How to deserialize binary stream Programming Software Development by Lerner You could consider reading the entire line in and then parsing it, or you could consider parsing it as you read it in. Either way, you will probably read the data into a series of strings and then convert to numerical data types as desired. You could use getline() using the pipe and newline char as delimeters or you could use strtok() if you're … Re: How to deserialize binary stream Programming Software Development by ArkM The main criteria for the right solution of deserialization is: you must suspect that all data were crippled, edited by mad operators, data file name was changed, you get another, wrong file etc. Deserialization module must cope with all these situations (at least detect them)... Probably the best deserialization modules can write paranoics … Re: How to deserialize binary stream Programming Software Development by thekevin07 I c but for some reason i can't read the data in to anything not even a [CODE] char buffer[200] [/CODE] unless I'm doing it wrong here is the function that reads it [CODE] char buf[200]; record rs; fs.seekg(0); while(!fs.eof()) { fs.read(buf,200); } cout<<buf<<endl; [/CODE] but it prints nothing if you want i can … Re: How to deserialize binary stream Programming Software Development by Lerner Can you open a file and see the information in the format posted in your original post or is it in binary format? Is the format always going to be a char pipe digit pipe digit pipe digit pipe digit newline char? Post what you coded for the type record. Don't use the return result of eof() to control the loop. If it doesn't cause a … Re: How to deserialize binary stream Programming Software Development by ArkM I don't know what you expect to print after this obviously incorrect use of unformatted read. Try classic: [code=cplusplus] std::string line; ... while (getline(fs,line)) { cout << line << endl; } [/code] Re: How to deserialize binary stream Programming Software Development by ArkM Regrettably, I'm going off-line now. See you later... Re: How to deserialize binary stream Programming Software Development by thekevin07 i replaced the print code you gave and i added in the ios::binary flag and it gave me this err could not deduce template argument for 'std::basic_istream<_Elem,_Traits> &' from 'std::ofstream' the file is binary and i cant change it to plain ascii thanks