|Images with Birt [message #963019]
||Mon, 29 October 2012 14:06
| Abhi Kaul
Registered: October 2012
I am using Birt 4.2.1 runtime engine API inside my Web Application using Spring (without Birt Viewer) and have a custom resourcelocator to handle the resources. The libraries and other resources like property files are loaded perfectly but when it comes to images, it's not working somehow.
I debugged inside my resource locator and the following things are happening when it comes to images :
1. The findResource method is called with the correct fileName and file type (IMAGE).
2. The resourceLocator is able to locate the resource and returns a good URL to BIRT.
3. The findResource method is again called, this time with the file name as file:.....
and the absolute path of the file (which was returned by the method as URL earlier) as if a toString was called by birt on the returned URL. This time predictably the method cannot find a URL and hence returns null.
4. Birt gives the error ATTENTION: Error.ResourceNotAccessible
Powered by FUDForum
. Page generated in 0.02815 seconds