aspose file tools*
The moose likes Distributed Java and the fly likes rmi with big object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Distributed Java
Bookmark "rmi with big object? " Watch "rmi with big object? " New topic
Author

rmi with big object?

zknyy wolf
Greenhorn

Joined: Jan 07, 2003
Posts: 21
I want to send a file to server with,at first I use the file object with rmi ,but failed.now I read the file to a byte array like "byte[] file" and invocate a remote method like "public void upload(byte[] file)" with rmi, but failed when the file is big.what can i do? only do it with socket?
Dana Hanna
Ranch Hand

Joined: Feb 28, 2003
Posts: 227
It sounds like you are misusing the technology. RMI is based more around method invocation, and not uploading files.
However, this shouldn't have caused a problem. Could you give more detail and show your code and more importantly, the error!
zknyy wolf
Greenhorn

Joined: Jan 07, 2003
Posts: 21
thank you Dana.
I find some mistake in my code,on the other hand there is a parameter of JVM -Xms -Xmx,I solve it,thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: rmi with big object?