Saving a media object from a data table to server

If you are looking at feeding the image to an API request, then have a look at @meredydd’s example in this link :

Alternatively, if the local server is one you control, could you run an uplink script on it? That way you wouldn’t need to make an API call, you could just read the data table directly and return the media object.

Did I understand you problem correctly?