How do you display an image entity from OData server?
0
I have an entity that is a generalization of System.Image and is exposed in an OData service. I am trying to display the image inside the consuming app, but Studio Pro will not let me select the entity as the data source for the image widget. The "Select" button is just greyed out: The image widget is inside a data view, with its source set to a microflow that returns the TestImages entity. My question is, is this not supported? If we want to display images from a different app do we have to instead fetch the image via URL and not use OData? If I am able to expose entities that are of type Image, then I would expect to be able to use them like normal, otherwise the platform shouldn't let you expose them to begin with. It doesn't seem to recognize that the entity is of type System.Image:
asked
Alex Stump
2 answers
0
Hi Alex
It would be better to use the Image URL of the other project. If you create a URL string for the images in the other project, you can use it better in this project. The video below can give you an idea about creating this URL.
When you fetch images using OData then you will get image in base64 string -> Go to your page where you want to show your image -> take a dataview source as nanoflow -> inside this nanoflow convert base64 to image & implement your logic accordingly.