Windows共有フォルダーからLinuxマシンにリモートファイルをコピーしています。コピーに時間がかかります。320 MB のうち、10 時間でコピーされたのは 200 KB だけです。
ここに私のコードスニペットがあります:
try {
String user = "xxxx";
String pass ="yyyy";
NtlmPasswordAuthentication auth = new NtlmPasswordAuthentication("",
user, pass);
String sharepath ="smb://aa.bb.com/root/Test/Access.mdb";
SmbFile remoteFile = new SmbFile (sharepath, auth);
OutputStream os = new FileOutputStream("/home/test/Access.mdb");
InputStream is = remoteFile.getInputStream();
int ch;
while ((ch = is.read()) != -1) {
os.write(ch);
}
os.close();
is.close();
} catch (Exception e) {
e.printStackTrace();
}
コピーにかかる時間を短縮するにはどうすればよいですか?