Requires: IP-Symcon >= 3.1
string IPS_GetMediaContent (integer $MediaID)
|MediaID||ID of the media object whose content should be returned|
Returns the content of the media object coded in Base64
This command returns the Base64 coded content of the media object with the ID MediaID. The content is read from the file that is defined in the media object.
A useful example for this function is to provide the content to an external application that cannot access the file system via the JSON-RPC API.
$Content = base64_decode(IPS_GetMediaContent(12345));