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_SetMediaContent

Requires: IP-Symcon >= 3.1

boolean IPS_SetMediaContent (integer $MediaID, string $Content)

Parameters

MediaID ID of the media object whose content is set
Content Base64 coded content

Returns

If the command succeeds, it returns TRUE, otherwise FALSE.

Description

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.

Example

$MediaID = IPS_CreateMedia(1); //Create image
IPS_SetMediaFile($MediaID, "BlackPixel.gif", False);
IPS_SetMediaContent($MediaID, "R0lGODlhAQABAIAAAAUEBAAAACwAAAAAAQABAAACAkQBADs=");
Deutsche Webseite verfügbar
Go to cart
Any questions?