| Package | org.igniterealtime.xiff.vcard |
| Class | public class VCardPhoto |
| Inheritance | VCardPhoto Object |
| Implements | IVCardPhoto |
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
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| binaryValue | property |
binaryValue:StringBase64 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.
public function get binaryValue():String public function set binaryValue(value:String):voidSee also
| bytes | property |
bytes:ByteArrayImage data
public function get bytes():ByteArray public function set bytes(value:ByteArray):void| externalValue | property |
externalValue:StringThe URI to an external photo
public function get externalValue():String public function set externalValue(value:String):void| type | property |
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.
public function get type():String public function set type(value:String):void| 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.
Parameterstype: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.
|