Use Data- rather than ObjectInput/OutputStream