This week's book giveaway is in the Agile and other Processes forum. We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line! See this thread for details.
I want to access a File which is on a different machine using Java . I need to pass Username and Password so that I can access the file .
How can I do this ?
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35241
7
posted
0
What kind of file system is this?
If it's SMB, have a look at the jCIFS library, which emulates the java.io.File API for SMB filesystems. Its SmbFile class lets you open files with username/password.