0

Can anyone please let me know what is the SMBJ API to copy folder/files from fileshare to my local machine ?

Also, if possible can i get an example for the same ?

Vikas Kumar
  • 13
  • 1
  • 12

1 Answers1

3

Once you've obtained the File from the DiskShare, you can just call File.getInputStream(), and copy the bytes to a local java.io.FileOutputStream like you would do with a regular file copy in Java.

Hiery Nomus
  • 17,429
  • 2
  • 41
  • 37