Website hosting service by

 Back to Index

11.20.4 Binary Objects

This class may initialized from string data (which may include NULs). The primary acess to the content of a Binary object is provided by an attribute:

The binary data encapsulated by the Binary instance. The data is provided as an 8-bit string.

Binary objects have the following methods, supported mainly for internal use by the marshalling/unmarshalling code:

decode( string)
Accept a base64 string and decode it as the instance's new data.
encode( out)
Write the XML-RPC base 64 encoding of this binary item to the out stream object.

It also supports certain of Python's built-in operators through a _cmp__() method.



2002-2004 Webhosting Service


Disclaimer: This documentation is provided only for the benefits of our hosting customers.
For authoritative source of the documentation, please refer to


Domain registration - Domain registration, domain name transfer and domain search services   Cheap domain name registration - Register domain name and domain transfer from $5.95/year only