• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

rmi with big object?

 
zknyy wolf
Greenhorn
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 227
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 21
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic