Question

1
Replies
302
Views
Saikrishna Chitimalli (saikrishnaCSK)
Central Provident Fund Board

Central Provident Fund Board
IN
saikrishnaCSK Member since 2015 16 posts
Central Provident Fund Board
Posted: October 31, 2018
Last activity: November 9, 2018
Posted: 31 Oct 2018 7:53 EDT
Last activity: 9 Nov 2018 11:27 EST
Closed

Image is not getting displayed in IE 11(11.0.90)

Hi,



Image is not rendering in a section after click on view button in IE(blank screen is displayed) only where as it is working fine Chrome.

To display the attchment, below section is being refereshed as an event action



-----Section---


<pega:when test="pxRequestor.pyPegaDesignMode == 'true'">

<div>Section For Attachment Display</div>

</pega:when>

<pega:when test="HasDisplayAttachmentPage">

Hi,

Image is not rendering in a section after click on view button in IE(blank screen is displayed) only where as it is working fine Chrome.
To display the attchment, below section is being refereshed as an event action

-----Section---

<pega:when test="pxRequestor.pyPegaDesignMode == 'true'">
<div>Section For Attachment Display</div>
</pega:when>
<pega:when test="HasDisplayAttachmentPage">

<% String MyMimeType = tools.findPage("MyDisplayAttachmentPage").getString(".pyAttachMimeType");
String pzInsKey = tools.findPage("MyDisplayAttachmentPage").getString(".pzInsKey");

%>

<pega:choose>
<pega:when java='<%= MyMimeType.contains("image")%>'>
<div id="draggable"style="overflow:auto; box-sizing:border-box; width:500px; height: 500px; border-style: solid; border-width: 2px; ">
<object data="<pega:url value='pyActivity=CPFB-FW-CRMS-Work.DisplayAttachment&pzInsKey='/><%=pzInsKey %>" type="<%=MyMimeType %>" </object>
</div>
</pega:when>
<pega:otherwise>
<div id="draggable" style="overflow:hidden; width:90%; box-sizing:border-box; height: 500px; ">
<object data="<pega:url value='pyActivity=CPFB-FW-CRMS-Work.DisplayAttachment'/>" width="100%" height="100%" type="<%=MyMimeType %>" </object>
</div>
</pega:otherwise>
</pega:choose>
</pega:when> <!-- When there is an attachment page -->

------Activity--------

Activity "DisplayAttachment" contains only one java step as below.

byte[] byteArray=Base64Util.decodeToByteArray(pyAttachStream);
String result=tools.sendFile(byteArray, pxAttachName, false, null, false );

Please help.

Low-Code App Development User Experience
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question.