Question

1
Replies
275
Views
Close popover
Saikrishna Chitimalli (saikrishnaCSK)
Instellars

Instellars
SG
saikrishnaCSK Member since 2015 16 posts
Instellars
Posted: October 31, 2018
Last activity: November 9, 2018
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">

<% 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