cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Can anyone help me understand how to decode encoded string data from an OData service to ui5

Prajwal_N
Explorer
0 Kudos
408


I'm trying to fetch data from an OData service in my UI5 application, but the string data of image is encoded by base64 and I'm not sure how to decode it and display in my ui5 application. Can someone provide an example of how to achieve this, or point me in the direction of a relevant resource?

Accepted Solutions (0)

Answers (1)

Answers (1)

WouterLemaire
SAP Mentor
SAP Mentor
0 Kudos

I think you can just set the base64 in the src property of the image.

Anyway, plain html image tag allows this: https://stackoverflow.com/questions/21227078/convert-base64-to-image-in-javascript-jquery