Maximo

Maximo

Come for answers, stay for best practices. All we're missing is you.

 View Only
Expand all | Collapse all

Display images from attachments in a BIRT report on MAS Saas manage where the doclinks are stored in COS

  • 1.  Display images from attachments in a BIRT report on MAS Saas manage where the doclinks are stored in COS

    Posted Mon July 07, 2025 02:07 PM
    Hello All,
     
    Has anyone successfully created a BIRT report that displays images from work order attachments in MAS  where the doclinks are stored in Cloud Object Storage (COS)?
     
    We are working within an IBM SaaS environment, and the doclinks are stored in AWS COS.
    We've developed a report that works correctly when the doclinks are stored in local storage, but the same approach doesn't work when attempting to access images stored in COS.
     
    Here is the snippet of code we're using:
     
    var docUrl = "https://mxhost/maximo/oslc/cosdoclink/i1.png";
    row["imgdata"] = Base64.getEncoder().encodeToString(XMLUtils.readXMLFileToBytes(docUrl));
     
    Has anyone run into this issue or found a workaround for retrieving and displaying images from COS in a BIRT report?
     
    Any help or guidance would be appreciated!
     
    Thanks in advance.


    ------------------------------
    Ratheesh Pullaikodi
    ------------------------------


  • 2.  RE: Display images from attachments in a BIRT report on MAS Saas manage where the doclinks are stored in COS

    Posted Tue July 08, 2025 09:01 AM

    hello Ratheesh

    IBM seems to release a note today on this known limitation and suggested work around using API to convert into public URL without any authentication.

    Hope this helps to your problem.

    BIRT Reports Fails to Render S3-Based Image Attachments in IBM Maximo Application Sute 9

    Regards



    ------------------------------
    Saikat
    ------------------------------



  • 3.  RE: Display images from attachments in a BIRT report on MAS Saas manage where the doclinks are stored in COS

    Posted Wed July 09, 2025 03:21 AM

    Hello Saikat

    IBM replied with same as a response to a PMR raised.

    This is resolved by Creating an API from enterprise service to return the DOCUMENTDATA in Base64 encode text.  Invoke the same API from birt.

    For some reason, DOCUMENTDATA returns null if I invoke Object structure rest APIs.

    Thanks



    ------------------------------
    Ratheesh Pullaikodi
    ------------------------------