27
Views
3
Comments
How to save API image response into database.
Application Type
Reactive

Hello,

I'm calling an API and getting data something like the below image. Now I want to save the image into Outsystems database, but I found the alt text and formula and I don't understand how I use these and save the data and display the image on the screen.

Thanks,
Rakhi

2025-02-10 17-24-13
Arun Rajput

Hi @Rakhi Chouhan ,

There can be another end point to fetch image content in json format using any id from above api response.

Because in snapshot is I can see clearly there is no json value or anything like image content.

I think you should check if there another endpoint to fetch image on the basis of above api response.

-Arun

2024-04-18 08-00-54
Mayur Shrirame

Hi Rakhi,

The image url is in string format, so I stored the image url in text attribute inside an entity and later on to display the image on UI, I used the image widget and type I selected as External URL, and passed the text attribute value to it.

I am attaching the OML file for your reference.

RestAPIShowImage.oml
2019-01-07 16-04-16
Siya
 
MVP

With a bit more context, community members will be able to help you better. Based on the JSON you have provided, I found a few relevant links, such as this one on Stack Overflow, which deals with similar JSON data. It appears you are consuming the Smartsheet API from Smartsheet.

Unfortunately, there is no option available at Smartsheet for one to try out, as access is only available to enterprise customers. I suggest reaching out to the respective support team for assistance.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.