on 12-03-2008 12:40 PM
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?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.