Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How i can get the full URL of a image of the KM?

Hi experts,

i'm trying to show in a generated PDF images of a KM, the problem i have is i can get the resource of the km but then i don't know how to resolve the full path to access from the PDF.

The code i use to get the resource is:

IWDClientUser wdClientUser = WDClientUser.getCurrentUser();

IUser sapUser = wdClientUser.getSAPUser(); ep5User =


// Getting the Resource.........

IResourceContext resourseContext = new ResourceContext(ep5User);

IResourceFactory resourseFactory = ResourceFactory.getInstance();

RID pathRIDimg = RID.getRID("/pip_hesaeventos/blank.JPG");

boolean existe = resourseFactory.checkExistence(pathRIDimg, resourseContext);

com.sapportals.wcm.repository.IResource resourceimg =

resourseFactory.getResource(pathRIDimg, resourseContext);


String prueba = resourceimg.getURI().getPath();

But getURI.getPath don't give me an url i can use, any ideas?

Former Member
Not what you were looking for? View more on this topic or Ask a question