...
When creating BinaryFile content with the REST API, it is possible to provide data as a base64 encoded string, using the "data
" fieldValue key:
Code Block | ||
---|---|---|
| ||
<field> <fieldDefinitionIdentifier>file</fieldDefinitionIdentifier> <languageCode>eng-GB</languageCode> <fieldValue> <value key="fileName">My file.pdf</value> <value key="fileSize">17589</value> <value key="data"><![CDATA[/9j/4AAQSkZJRgABAQEAZABkAAD/2wBDAAIBAQIBAQICAgICAgICAwUDAwMDAwYEBAMFBwYHBwcG ... ...]]></value> </fieldValue> </field> |