Translation is in progress...
Not all topics are available at the moment and content links may be broken.
Requires: IP-Symcon >= 3.1
boolean IPS_SetMediaContent (integer $MediaID, string $Content)
|MediaID||ID of the media object whose content is set|
|Content||Base64 coded content|
|If the command succeeds, it returns TRUE, otherwise FALSE.|
This command sets the content of the media object with the ID MediaID. It uses the filename that was previously defined by IPS_SetMediaFile.
An error message is returned if the file name is not set or invalid or if the content is not Base64 coded.
This command should be used carefully as it overwrites the content without warning.
$MediaID = IPS_CreateMedia(1); //Create image IPS_SetMediaFile($MediaID, "BlackPixel.gif", False); IPS_SetMediaContent($MediaID, "R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=");