Take input stream instead of File in BIRT.generateReport method.