How to send image from a rest api to external system
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2023 10:20 PM
I have a requirement to send photos from live_profile table to external system. Using Rest API Explorer I tried to create REST API on live_profile table but in the response there is no value setting in the photo.
I also tried to build api url on sys_user table but same we are not getting photo in the response. Also in the “avatar” field getting a sysID opposed to filename.
Could you someone help how can we get photo in the API call which will be send to external system.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-14-2023 11:18 PM
Hello @Poorna7 ,
When you upload the photo to the user profile it will automatically create a record in the sys_attachment table.
You need to use the rest message of the sys_attachment table and check if the image is getting passed and few validations.
Please check the below screenshot where i uploaded the photo and record got created in the sys_attachment table.