How to send image from suitecrm to Api

I have a file type field which select the file from user PC it can be a video/image. I have some logic in before save hooks logic which send the selected file to a server…

I need the uploaded file url which my api needs to send. e.g $bean->file->url

or is there any other way?

Api call:

use FacebookAds\Object\AdImage;
use FacebookAds\Object\Fields\AdImageFields;

$image = new AdImage(null, ‘act_<AD_ACCOUNT_ID>’);
$image->{AdImageFields::FILENAME} = ‘<IMAGE_PATH>’;

echo 'Image Hash: '.$image->{AdImageFields::HASH}.PHP_EOL;

please guide

Api reference: