cancel
Showing results for 
Search instead for 
Did you mean: 

Connect into a Server folder

Former Member
0 Kudos

Hello WebDynpnians!

I need enter into a Server Folder for take a image file. The server folder required autentication to access.

Can i access into server folder from a java code?

Sorry for my very bad english. I am Argentine.

Thanks for all!!!

Giancarlo

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Even if you fetch through java file, you still need permission for the fetching the same. If there is a SAP server, the root folder "SAP" will always be shared. if the image is under SAP installation folder, You can get the user account with required access rights from administrator and get it directly by browsing it.

This is what my understanding is. Hope it helps.

Former Member
0 Kudos

The problem is not the user and pass into the folder. I know this info. I can enter into the folder manually. The problem is that i dont know how enter into de server folder adding user and pass by java code.

If I have:

"File file = new File( "

10.10.10.10
images
hello.jpg" );

When i execute this sentence i get the error "Access Denied"

If the server folder is set as public folder, I can access without problem!

Thanks!!!

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

In WebDynpro, for example the statement

File f=new File("Sample.bmp"); by default it

will point to the file stored in Server0 folder of your server.

Regards

LakshmiNarayana