hi, I want to access a file from a server folder that is not shared using admin username and password. here is my code
public class App {
public App (){
}
public static void main (
String [] args){
App a = new App ();
mainapp s = new mainapp (); // mainapp is another program which contains the begin method
s.begin("C:/images/abcd.jpeg");
}
}
here is the main app begin method
public void begin (String args)
{
// We need one argument: the image filename.
if (args.length() == 0)
{
System.err.println("Usage:
java operators.Scale image");
System.exit(0);
}
// Read the image.
PlanarImage image = JAI.create("fileload", args);
// Create the GUI and start the application.
new mainapp(args,image);
}
}
In the above program instead of giving C:/images/abcd.gif, i need to access this file from a server folder using username and password. Any help would be appreciated
thanks
david