What can we improve?

Documentation

(Edit)

Translation is in progress...
Not all topics are available at the moment and content links may be broken.

IPS_GetMediaContent

Requires: IP-Symcon >= 3.1

string IPS_GetMediaContent (integer $MediaID)

Parameters

MediaID ID of the media object whose content should be returned

Returns

returns the content of the media object coded in Base64

Description

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.

Example

$Content = base64_decode(IPS_GetMediaContent(12345));
Deutsche Webseite verfügbar
Go to cart
Any questions?