Image.createNewVersionFromData (Method)
Creates a new version of a base64 image representation and assigns it the attributes contained within this method's arguments.
Returns:
VersionID (integer)
Arguments:
Name | Type | Required | Description |
---|---|---|---|
id | ImageID | Required | The image's ID. |
encodedImageData | Base64Data | Required | Base 64 encoded image data. |
fileName | ImageFileName | Required | The full path to the image's temporary server file. CommonSpot moves this file to its final location as it executes this method. |
Context:
License Requirements | None |
Permission Requirements | subsite:UploadImages |
Deny Context | None |
Require Context | AuthoringEnabled |
Author Lock |
Error Codes:
Code | Error Message |
---|---|
1000406 | Insufficient permissions exist for uploading the specified file type. |
1000407 | $1 |
Notes:
None