US and Worldwide: +1 (866) 660-7555
+ Reply to Thread
Results 1 to 3 of 3

Thread: Dynamic Image URL

  1. #1
    Join Date
    Oct 2009
    Posts
    23

    Default Dynamic Image URL

    I have a database field that has where the image is stored.

    I am using Will Gorman's book Pentaho Reporting 3.5 for Java Developers.

    It says:
    To add dynamic images to your report use the content-field report element. THe content field accepts different type of image inputs for rendering......
    If you have a field that contains a URL or file system location to your image, the content-field element will render the specified image.


    I have tried my field two ways:
    1) as //server/images/pic.jpg
    2) as mapped drive on server. X:\images\pic.jpg

    It will not render the picture.

    Static Pictures will work (I tried using a formula to populate the name field in a static pic but that does not work either).

    Any help is greatly appreciated.

  2. #2
    Join Date
    Oct 2009
    Posts
    23

    Default More Info

    Not sure if I provided enough information about my issue:

    I am using an Oracle 10g Database and Pentaho 3.5GA

    Connecting via JDBC.

    Field with the File location is being recognized by report designer as a String.

    The locations is //myserver/images/Image Project/pic.jpg

    There is a space between Image and Project if that can cause Pentaho problems (please note that it does not as a static image with the link vs embed option)

    Again, any help is appreciated.
    Last edited by Sreh; 12-17-2009 at 05:52 PM.

  3. #3
    Join Date
    Oct 2009
    Posts
    23

    Default Fixed

    Many thanks to dankins for tracking this one down.

    The problem appears to be a bug in 3.5GA Report Designer (he confirmed that it is fixed in later version of the designer).

    I only had to publish my report to the server and it works.

    So to summarize:
    1) use the content-field report element
    2) Populate the attribute value with your column that contains URL
    3) it will not work in designer (3.5GA), publish to your pentaho server and it works.

+ Reply to Thread

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts