0

I am new with iReport and I have a problem with images. I have a parameter call id and I want that images change according to this parameter. Those images are stored in a folder, not in a server.

How can I do that by entering the path (which is a field of a table in database) automatically select the image automatically?

dur
  • 15,689
  • 25
  • 79
  • 125
  • 2
    Possible duplicate of [How to insert images from database?](http://stackoverflow.com/questions/15833031/how-to-insert-images-from-database) – Alex K Apr 25 '17 at 12:40
  • 1
    But i am not using java, just sql – prgonzalez Apr 25 '17 at 12:42
  • You have template and you can apply approach described at post (duplicate link). There are a lot of similar posts at SO – Alex K Apr 25 '17 at 13:15
  • so what should i do? write in that post? – prgonzalez Apr 25 '17 at 14:12
  • Try solutions from this post. `write in that post?` - If you have an answer, yes. In other cases - no – Alex K Apr 25 '17 at 14:13
  • I have created in database a new field call "path" where the path of the image is. Then i put this field on my report. My question is this way to do it is correct or i have to create a variable or a parameter? – prgonzalez Apr 26 '17 at 07:02
  • Yes, you can use field (or variable). If the path is constant you can use parameter – Alex K Apr 26 '17 at 07:05

0 Answers0