Class WDDX::Binary
In: lib/wddx.rb
Parent: WddxData

Binary

The binary datatype represents strings (blobs) of binary data. The WDDX DTD allows for multiple encodings of binary data. In this version only MIME style base64 encoding is supported by the specification. Optionally, the length of the encoded binary object can be provided as a hint to WDDX deserializers. It can be used to validate the length of the binary object after decoding. It can also be used for efficient allocation of memory during the decoding process.

Methods

encode   encoded_data=   length   new   size  

External Aliases

bin_data -> data

Attributes

bin_data  [RW] 

Public Class methods

Initialize with the raw binary data (to be encoded with Base64)

Public Instance methods

Returns an Base64 encoded string

set binary data

length of the raw binary data in bytes

size()

Alias for length

[Validate]