Send file with RMI
843793Jun 20 2001 — edited Feb 16 2002Hi,
I tried to send a file from client to server with RMI as follow:
upload(String filename, InputStream in);
however the InputStream is not a Serializable.
1. Is it a correct method to send the file in RMI ? if not, what should be used?
2. How to "Serialize" the InputStream, I have tried to pass the "SerailInputStream" extends from InupStream object implements Serializable as a byte array by the ObjectOutputStream and retrieve it in server successfully, but the inputstream seems cannot be used.
Many thanks
George