I am creating a client/server RMI application and need to search for images on the server database and return to the client multiple images.
I immediately thought to do this ArrayList<Byte []>arrayBytes = new ArrayList <Byte []>(); and return arrayBytes, I soon found that it is impossible.
Researched ByteArrayOutputStream but I do not think the support for what I'm trying to do ...
What alternative have for this?
 
    