Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

ByteArray to object

  Asked By: Harry    Date: Dec 13    Category: Java    Views: 494
  

I m devloping an client server application in which i
have to send objects from one system to another.
i have send in following manner:-
step 1: i have to convert objects into bytes.
step 2: i have to transfer this byte stream
step 3: on other side i have to convert this byte
stream into objects.

Can you give me some suggestion for step3

because it is very difficult to know the starting byte
and ending byte of each object.

Share: 

 

2 Answers Found

 
Answer #1    Answered By: Kiet Jainukul     Answered On: Dec 13

implement the java.io.Serializable interface.

 
Answer #2    Answered By: Mae Roberts     Answered On: Dec 13

why not have the object  implement serializable so you can deserialize it
on the other side.

 
Didn't find what you were looking for? Find more on ByteArray to object Or get search suggestion and latest updates.




Tagged: