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 (not required)
Transaction Logging If transaction logging is enabled at the site level, calls to this method will be logged
Customization This method may be customized at the site level

Error Codes:

Code Error Message
1000406 You do not have sufficient permissions to upload the specified file type.
1000407 $1

Notes:

None