XML-RPC Base64-Encoded Binary Data Type

To transfer binary information via XML-RPC we need to encode the data in base64 (serialization) and use the base64 tags as xml tags.

Example Declaration:

<param>
<value>
<base64>UHSYDhD1423Cc0Ad3NVP4OidTd8E1kRY5Edh</base64>
</value>
</param>

Since PHP does not have a binary data type, developers need to encode files in base64 for XML-RPC transfer by using the file_get_contents function.



Info

Category:
PHP XML
Tags:

base64 x 1

encode x 2

rpc x 13

xml x 13


Popular Tags


RSS

 RSS Articles
eXTReMe Tracker