Reading an image using SAP OData v2 in UI5 application



You have to use below code:

img.setSrc("/path/to/my/service/UserPhotoSet('someone@gmail.com')/$value");

Here you need to replace part with original path.


Advertisements