3 Replies Latest reply: Aug 16, 2010 3:08 PM by 669686 RSS

    Image not showing in XML Publisher [works on windows, not unix]

    user631175
      have an xml publisher RTF template that references an image from a URL passed in from the xml data file. The report definition references the image as follows:

      <fo:external-graphic>
      <xsl:attribute name="src">
      <xsl:value-of select="//fld_FILE_PATH_NAME"/>
      </xsl:attribute>

      The XML produced for the report correctly contains one single element to resolve to the URL:
      <fld_FILE_PATH_NAME>file:////i01_02/psoft/90/finsys/appserv/FSDSYS90/files/OZ57_EX_E0445_0000000303.png</fld_FILE_PATH_NAME>


      When running in PeopleSoft on a windows application server the process works fine and I can see the image. When I run this in our unix solaris environment, PT 8.49, the report runs but the image does not display. I have checked that the image does exist in the correct location I ran firefox in gnome and pasted the file location below and it resolved fine.

      I am referring to the file using a 'file' URL as follows:
      file:////i01_02/psoft/90/finsys/appserv/FSDSYS90/files/OZ57_EX_E0445_0000000303.png

      Any ideas?

      Glenn

      Edited by: user631175 on Feb 1, 2010 6:44 AM
        • 1. Re: Image not showing in XML Publisher [works on windows, not unix]
          user631175
          OK, this was a confusing one, and I suspect is a bug.

          In the end, after using the xdo.log [debugger], we saw that the xml publisher engine is stripping off two slashes as the beginning of the URL construct. So, the solution, is to add two additional slashes.

          So, the URL which ended up working is:

          file://////opt/oracle/90/findev/appserv/FSDDEV90/files/OZ57_EX_E0445_0000000303.png

          which resolves to the file /opt/oracle/90/findev/appserv/FSDDEV90/files/OZ57_EX_E0445_0000000303.png

          FYI - our environment is Solaris 10 using the Oracle Application Server, PT 8.49
          • 2. Re: Image not showing in XML Publisher [works on windows, not unix]
            user105668
            The problem is with the Path u define, usually the path in unix will be created like "usr/tmp" or "usr/images" Place your file in the proper path, i think u are not using the forward slash(/).

            I think u are giving the backward slashes on unix as well, So try checking the path in the putty or ssh and find the image and then pass the same to the template.

            Thanks
            Chanu

            Edited by: user9313192 on Apr 6, 2010 10:07 PM
            • 3. Re: Image not showing in XML Publisher [works on windows, not unix]
              669686
              Why are you using "file:////"?

              I simply use "/opt/oracle/90/findev/appserv/FSDDEV90/files/OZ57_EX_E0445_0000000303.png" and I have no issues. The image displays.

              If running on a Windows platform, go for "c:\temp\OZ57_EX_E0445_0000000303.png".

              HTH