Skip to Content
Former Member
Dec 03, 2008 at 12:40 PM

InputStream in AbstractPortalComponent


Hello developers...

I would like to obtain an InputStream in my AbstractPortalComponent and tried to instantiate it like this:

IResource res = request.getResource(IResource.SCRIPT, "reports/SAPPortalPDF.jasper");String path = res.getResourceInformation().getSource();
InputStream in = getClass().getResourceAsStream(path);

the InputStream is null in this case. The specified path is valid... Is there another way obtaining an InputStream to a resource?