[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", "");
 SmbFileInputStream in = new SmbFileInputStream(
  "smb://username:password@Server/d$/inetpub/wwwroot/images/myImg.jpg" );

 SmbFileOutputStream out = new SmbFileOutputStream(
 int c;
 while((c = in.read()) != -1)

 jcifs.Config.setProperty( "wins", "");

 Is Wins the IP Addess of the domain?

 Is there a way to speed this up?

Joe Eugene

More information about the jcifs mailing list