This content has been marked as final.
Show 1 reply
-
1. Re: Streaming large data
billstclair May 2, 2005 11:57 AM (in response to ffray)I'm not sure I understand your problem well enough to answer, but I'll give a guess at it.
You should be able to "chunk" the data over the wire. Have a stateful bean on the server side with a read(int cnt) method that returns the data in chunks, as a byte[] array result, much like reading chunks of an InputStream. The drawback to this is that you'll garbage collect a lot on the client, since there's no way to tell RMI to put the result in a pre-allocated buffer, but it shouldn't be too bad.