on 06-13-2014 10:07 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.