I have tried above three options. The second option works as I pass the path and image is stored in to local drive. But first and last option doesn't work. I get byte of image from database(blob --> byte) and I pass it to ByteArrayInputStream class. But it doesn't work.
I have also tried JRRenderable option but no success.
Can somebody tell me what am I missing?
PS : Size of imageByteArray is not zero. I have verified that.Cross Post
Joined: Aug 16, 2007
I took a bird's eye view into JRImageRenderer class from source code and found below code snippet,
Here, imageLocation variable is of String type but If I have passed an object of InputStream then how come imageLocation variable would get initialized?