I have a class which has a method that is receiving an object as a parameter. This method is invoked via RMI.
public RMIClass extends Serializable { pub
Look at those samples, and wherever they're using FileOutputStream, use ByteArrayOutputStream instead. Wherever they're using FileInputStream, use ByteArrayInputStream instead. The rest should be simple.