I am implementing a webservice that returns the content of binary files. The files are about 100MB big. The webservice and the client are build upon Axis2.
What is the best joice for the return type of the method that returns the data?
I tried byte[], but I always get OutOfMemoryErrors on the server side. Plus I am not very happy to have the whole file content in memory. Is there something stream-alike that I can use instead?