[英]How can i upload file in remote machine(LAN) using java
我该如何使用Java程序在远程计算机(LAN)中上传文件。我想在LAN中连接远程计算机并将文件从本地计算机上传至远程计算机。所以请告诉我该怎么做。
I suggest you use JSch . 我建议您使用JSch 。 You'll be able to connect easily to a remote machine and it allows you to execute file transfer using sftp for example .
您可以轻松地连接到远程计算机,它允许您使用的SFTP执行文件传输例子 。
It's hard to find a real documentation for JSch, but the various examples they give on their site are really complete and in general sufficient to help one succeeding in his task. 很难找到JSch的真实文档,但是他们在站点上提供的各种示例确实很完整,并且通常足以帮助一个成功完成任务的人。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.