On this Page

    Image data

    The most common, and expected, way to specify a data value for an image field is for it to provide the file name of the image. This can also be an http: URL, though that will involve using, behind the scenes, an invocation of curl to fetch the image to a temporary file in local storage and then process it from there.

    An alternate way is to use a standard "data URI". In this format, the image data is base-64 encoded and it is provided in the following style:

    <imageFieldName>data:image/png;base64,iVBORw0KGgoAAA....</imageFieldName>

    Per the usual base-64 standard, the encoding is split into lines that are 80 characters long.