java 使用 RMI 传输文件
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2828654/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-29 23:02:26 来源:igfitidea点击:
file transfer using RMI
提问by GCD
How to do the file transfer using RMI in java?
java中如何使用RMI进行文件传输?
回答by Anon
You need to read chunks of the file, send them over the wire via an RMI call, and then write them on the other side.
您需要读取文件的块,通过 RMI 调用通过线路发送它们,然后将它们写入另一侧。
This library may help: http://openhms.sourceforge.net/rmiio/
这个库可能有帮助:http: //openhms.sourceforge.net/rmiio/

