I have to send a very large object of size > 100 MB over RMI
Which of these two approaches is best one ?
or
There's hardly any difference, except that the second way you give yourself extra work and another source of error. The 100MB of data will totally dominate the serialization overhead.