Packageorg.igniterealtime.xiff.vcard
Classpublic class VCardPhoto
InheritanceVCardPhoto Inheritance Object
Implements IVCardPhoto

Photograph.

The image height and width SHOULD be between thirty-two (32) and ninety-six (96) pixels; the recommended size is sixty-four (64) pixels high and sixty-four (64) pixels wide.

The image SHOULD be square.

See also

http://xmpp.org/extensions/xep-0153.html


Public Properties
 PropertyDefined By
  binaryValue : String
Base64 encoded data.
VCardPhoto
  bytes : ByteArray
Image data
VCardPhoto
  externalValue : String
The URI to an external photo
VCardPhoto
  type : String
Mimetype of the given bytes value, if any.
VCardPhoto
Public Methods
 MethodDefined By
  
VCardPhoto(type:String = null, binaryValue:String = null, externalValue:String = null)
To save a photo, either binaryValue or externalValue are required, but not both.
VCardPhoto
Property Detail
binaryValueproperty
binaryValue:String

Base64 encoded data. The image SHOULD use less than eight kilobytes (8k) of data; this restriction is to be enforced by the publishing client.

The image data MUST conform to the base64Binary datatype [7] and thus be encoded in accordance with Section 6.8 of RFC 2045 [8], which recommends that base64 data should have lines limited to at most 76 characters in length. However, any whitespace characters (e.g., '\\r' and '\\n') MUST be ignored.


Implementation
    public function get binaryValue():String
    public function set binaryValue(value:String):void

See also

bytesproperty 
bytes:ByteArray

Image data


Implementation
    public function get bytes():ByteArray
    public function set bytes(value:ByteArray):void
externalValueproperty 
externalValue:String

The URI to an external photo


Implementation
    public function get externalValue():String
    public function set externalValue(value:String):void
typeproperty 
type:String

Mimetype of the given bytes value, if any. Should be set by hand.

The image content type [6] SHOULD be image/gif, image/jpeg, or image/png; support for the "image/png" content type is REQUIRED, support for the "image/gif" and "image/jpeg" content types is RECOMMENDED, and support for any other content type is OPTIONAL.


Implementation
    public function get type():String
    public function set type(value:String):void
Constructor Detail
VCardPhoto()Constructor
public function VCardPhoto(type:String = null, binaryValue:String = null, externalValue:String = null)

To save a photo, either binaryValue or externalValue are required, but not both. If binaryValue is passed in, type is required. If externalValue is passed in, type is not required.

Parameters
type:String (default = null) — The image type of the photo. Required if binaryValue is passed in.
 
binaryValue:String (default = null) — The BASE64 encoded binary value of the photo. Either binaryValue or externalValue are required, but not both.
 
externalValue:String (default = null) — The URI to an external photo. Either binaryValue or externalValue are required, but not both.