[jcifs] Copying Files to different Servers
Joe Eugene
jebebox at earthlink.net
Sat Jan 10 23:23:26 GMT 2004
I am able to use following code to copy files.. buts its very slow.
Is there something i am doing wrong?
jcifs.Config.setProperty( "wins", "123.11.22.33");
SmbFileInputStream in = new SmbFileInputStream(
"smb://username:password@Server/d$/inetpub/wwwroot/images/myImg.jpg" );
SmbFileOutputStream out = new SmbFileOutputStream(
"smb://username:password@stork/c$/temp/myImg.jpg");
int c;
while((c = in.read()) != -1)
out.write(c);
jcifs.Config.setProperty( "wins", "123.11.22.33");
Is Wins the IP Addess of the domain?
Is there a way to speed this up?
Thanks,
Joe Eugene
More information about the jcifs
mailing list