Server send the size of object before data
Clean the code