on 04-07-2008 6:57 AM
hi expert
how to access server file system through webDynpro
anybody tell me how to give the path to the server so server can understand the folder link
urgently.....................
thanks
Regards
vijay
Hi,
Create a folder in the server and access it using
File f = new File("filename");
http://java.sun.com/j2se/1.4.2/docs/api/java/io/File.html
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
If the server contains D drive (D:), then folder in it can be accessed using
File file = new File( "D:\TestFolder\" );
As mentioned, make sure the folder contains read/write access for everyone.
Regards,
Harini S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Vijay,
You must use the Class File for this purpose
String fileName = "Serv10://new folder/file.txt";
File file = new File( fileName);
// Use streams to read and write to the file - FileInputStream
you must have proper authentication to access the drives and directories in the server.
Regards
- Vinod
*
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.