The encoding of objects and the objects reachable from them into a stream of bytes. The complementary reconstruction of the objects is called deserialization.
Questions tagged [object-serialization]
61 questions
3
votes
1 answer
PHP serialize protected class variables with wrong character count?
I am dealing with a strange problem in PHP 5.2.6, serializing objects.
Apparently, PHP stores protected variables members with an asterix ahead of its name. That is normal and correct, however, look at the following…

SquareCat
- 5,699
- 9
- 41
- 75
2
votes
3 answers
Saving my Serialized Class that have not serialized objects like Rect
I'm trying to save my Serialized object when the activity calls the onDestroy() but when i try to write my object using ObjectOutputStream a java.io.NotSerializableExeption is thrown.
Can you please help me. Thanks

Don David Jr. Julian
- 51
- 3
2
votes
1 answer
Incomplete PHP class when serializing object in sessions
I'm working on a shopping cart (Cart model). One of its protected properties is "_items", which holds an array of Product objects. They (Products) all get stored in DB for populating the session (using ZF, Zend_Session_SaveHandler_DbTable()…

nevvermind
- 3,302
- 1
- 36
- 45
2
votes
0 answers
How to store Nested Json to MongoDB using C# (.net Core) if the nested array should have different json elements
So basically, I have a requirement where I am trying to store a Class having 4 properties and the 5th property is a list in MongoDB, the catch is I want this list to have multiple object types. OR I want to know if I can save and retrieve below…

Kushagra Kasbi
- 135
- 2
- 9
2
votes
2 answers
How can you emulate object serialization on java in C#
I need to call a servlet call for an automation of a java applet using c#. What the java applet is it calls a servlet using a URL Connection object.
URL servlet = new URL(servletProtocol, servletHost, servletPort, "/" + ServletName);
URLConnection…

Nap
- 8,096
- 13
- 74
- 117
2
votes
3 answers
Java serialization of non serializable third party class
I am currently developing a web application and I would like to make java objects persistent at the server so that they can be retrieved at any time. Since a database is an overkill for my application, I choose the easiest way of persisting java…

Bavo Devocht
- 173
- 2
- 9
2
votes
2 answers
How secure is PHP object serialization and is it safe to pass across pages? (Using phpXMLrpc)
Basically this is what I am doing:
Im using PHPXMLRPC to communicate with Odoo.
In essence to communicate for every request I need to send over needs to follow this structure:
//The database I wish to connect too
$msg->addParam(new…

mjsey
- 1,938
- 5
- 18
- 28
2
votes
0 answers
Create object snapshot
I'm tinkering with transformers + "analyzer" pub packages and I want to build a 2 stage transformer.
The stages are:
Build AST for each dart source file.
Generate new sources from the first stage outputs(with information from all ASTs).
I…

JAre
- 4,666
- 3
- 27
- 45
1
vote
2 answers
Java and Object Serialization
Every example I have seen regarding object serialization, includes an all field constructor and a getter and setter method for every field. Is this nessecary? What do you have to do to make a java object serializable, other tagging it with the…

rubixibuc
- 7,111
- 18
- 59
- 98
1
vote
1 answer
How to serialize the com or excel objects to binary format so that i can store it in memorystream in asp.net
Here is the sample code...but i am getting the serializationException.
xlbook is the object and i want to save this object to memorystream.
unsafe public void Save(IStream stream, bool clearDirty, Excel.Workbook xlbook)
{
try
{
//if…

ani
- 111
- 1
- 5
- 14
1
vote
1 answer
JSON stringify skip nested object which has more than 3 levels
I wanted to store the object in local storage and I serialized the object using JSON.stringify. Then some of the inner attributes are missing after parse using JSON.parse.
I attached 2 images below to see the changes and appreciate it if anyone can…

Asbar Ali
- 955
- 1
- 13
- 26
1
vote
2 answers
How to write a Hastable or an Object to the file on Blackberry
I just learned that Blackberry does not support implementing Serializable. So is there any way to write an object (or Hashtable) to a file?
Thanks.

redline
- 235
- 2
- 17
1
vote
1 answer
Parsing data from untrusted Java serialized object
I need to parse untrusted Java serialized objects. The data is given to me as a byte array (written at some point by ObjectOutputStream).
I do not want to simply call ObjectInputStream.readObject() and/or load the actual object. I am looking for a…
user6557682
1
vote
0 answers
ArrayList() and SharedPreference using ObjectSerializer
I have an application that saves an array list of String and serializes it using an ObjectSerializer then saves that serialized list in a SharedPreferences instance.
It involves two activities "putting" and "getting" from the same SharePreferences…

Frank B.
- 204
- 5
- 17
1
vote
1 answer
Java Object Serialization ,Unable to close ObjectOutputStream?
hi i'm learing Object Serialization and tried this
import java.io.*;
class Employee implements Serializable{
Employee(int temp_id,String temp_name)
{
id=temp_id;
name=temp_name;
}
int id;
String…

Sainath S.R
- 3,074
- 9
- 41
- 72