on 08-29-2017 7:32 AM
Hi,
Its looks like binary data in base64 format.
Best approach to display any media files in UI5/Fiori apps is to create entity type media and call GET_STREAM method. It will give you url with .../.../$value.
If you want to go with current approach then,
1>> To open in new tab.
window.open('data:application/pdf;base64,'+oContainer, '_blank');
2>> To open in your UI5 app in same view.
In View:
<Panel id="idPanel" > </Panel>
In Controller:
var oPanel = this.getView().byId("idPanel");
var data = "data:application/pdf;base64,"+oContainer;
var html = new sap.ui.core.HTML();
html.setContent("<iframe id='adobeTag' type='application/pdf' src='"+data+"' style='width:99%;height:100% !important;' ></iframe>");
Cheers!!!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.