byte array to Object
Hi All...
I have array of byte and I have one user defined class which is implemented as Serializable.
This array of byte I am getting from Server...
Now I want to deserialize this array of byte to User Defined object..
do any body know how to do it?
thanx in advance
/sunil
If C++ is creating the object then it will not be serialized, as that's a complex Java operation that C++ does not know how to do. Conversely, if you are sending the object from Java to C++ then do not serialize it as C++ will not be able to deserialize it.
Anyway, since the object is only an array of bytes, forget about serialization entirely. Just send the bytes one at a time over whatever connection you have.