webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Trying to display the byte array content in IFrame CAF portlet

  • 1.  Trying to display the byte array content in IFrame CAF portlet

    Posted Tue September 03, 2019 07:50 AM

    Hi All,

    I am invoking a consumer webservice to get the the file content in byte array. I want to display the 1st byte array object in the CAF Iframe portlet.

    Can you please suggest, how we can do this.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 2.  RE: Trying to display the byte array content in IFrame CAF portlet

    Posted Tue September 03, 2019 09:28 PM

    Hello Kamalpreet
    Just to understand your scenario better, could you clarify the below for me?

    1. When you say “display the ist byte array object”, did you mean that you literally want to display the byte array object (Unreadable Machine Content) on the screen?
    2. iFrames are used to include another static page (like a .html page) into your current page. So, if you are invoking a consumer WS in your CAF application and getting back the file content in response, it is not possible to render it inside the iFrame.

    Answers to above questions would help to understand better.


    #MWS-CAF-Task-Engine
    #webMethods
    #webMethods-BPMS


  • 3.  RE: Trying to display the byte array content in IFrame CAF portlet

    Posted Wed September 04, 2019 03:41 AM

    Hi Prasad, Thanks for the quick response on the query. Please find my answers below:

    1. When you say “display the ist byte array object”, did you mean that you literally want to display the byte array object (Unreadable Machine Content) on the screen? -
      No , but this byte array object is having the pdf or tiff file, which needs to be displayed.

    2. iFrames are used to include another static page (like a .html page) into your current page. So, if you are invoking a consumer WS in your CAF application and getting back the file content in response, it is not possible to render it inside the iFrame -
      As mentioned in the point 1, the byte array object is being returned by the webservice, which is actually a PDF file or TIFF image file. How can we display it in CAF. Initially we were using the filenet tool that used to render the file and was displaying it in IFrame by passing the URL directly.


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS