cancel
Showing results for 
Search instead for 
Did you mean: 

Download image from SAP Portal

Former Member
0 Kudos

Hi,

we need to download images stored into a SAP Portal starting from the url of these images.

Ours is a pure-java application.

If i try to access the image's url using a browser, SAP give back a login-form and after authentication, everything works perfectly.

But if i try to access the image's url from a standalone java application using "javax.imageio.ImageIO", i'm not able to download the image.

Using Java API, how can i authenticate, access and download a file starting from its url?

Could anyone give me some examples?

Thanks,

Roberto

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

You can use UME API and do a force login, but I would recommend to use this only if the user is an authenticated user.

 

request.setAttribute(ILoginConstants.LOGON_UID_ALIAS, "userID"); 

UMFactory.getLogonAuthenticator().logon(request,response,"uidpwdlogon");

you can also do a force logon using 

UMFactory.getAuthenticator().forceLoggedInUser(request, response);

regards

Jagdeshwar