How to set up a absolute image pathname ?

hi,
I am using iReport v1.2.4

I have a report that uses a jpeg image in the title band.
In the image expression field, it ask for a absolute pathname, as in, /home/name/report/.../.jpg

Now, when i move the report to another computer, it becomes invalid. How can i set it up as a relative pathname instead ?

Or if not possible, how do i get around this problem.

Please help.

thanks,
Tony
tt_linux's picture
Joined: Jul 17 2006 - 11:11pm
Last seen: 16 years 10 months ago

2 Answers:

you have a number of options.

but you tell us nothing about your environment,
so i will guess.

1. keep the images in the database & download them when needed
2. keep them in the jar file ,if you are using java
3. distribute them with your app, and pass in a URL to the image area, instead of hardcoding it in the report.

4. tell us more about the environment, to save us guessing
Post edited by: code_slave, at: 2006/09/06 23:36
Code_Slave's picture
Joined: Aug 3 2006 - 8:42am
Last seen: 16 years 10 months ago
Setup a parameter like "FILES_ROOT" or something. And have it be passed to the report to specify the root path to the image on each system.
rsilver@ns.sympatico.ca's picture
Joined: Aug 4 2006 - 3:46am
Last seen: 16 years 10 months ago
Feedback