Question
Coforge DPA
IN
Last activity: 9 Nov 2018 11:27 EST
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.