| Platform | Since |
|---|---|
| Android | 0.9 |
| iPhone | 0.9 |
| iPad | 0.9 |
The blob is an abstract data type that represents binary information, often obtained through HTTPClient or via files. It often is used to store text or the actual data of an image.
| Name | Summary |
|---|---|
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| append |
Appends the data from another blob to this blob. (Android only.) |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| getHeight |
Gets the value of the height property. |
| getLength |
Gets the value of the length property. |
| getMimeType |
Gets the value of the mimeType property. |
| getNativePath |
Gets the value of the nativePath property. |
| getSize |
Gets the value of the size property. (iPhone, iPad only.) |
| getText |
Gets the value of the text property. |
| getWidth |
Gets the value of the width property. |
| imageAsCropped |
When this blob represents an image, this creates a new blob by cropping the underlying image to the specified dimensions. (iPhone, iPad only.) |
| imageAsResized |
When this blob represents an image, this creates a new blob by resizing and scaling the underlying image to the specified dimensions. (iPhone, iPad only.) |
| imageAsThumbnail |
Generate a thumbnail version of an image, optionally with a border and rounded corners (iPhone, iPad only.) |
| imageWithAlpha |
When this blob represents an image, this adds an alpha channel to the underlying image. (iPhone, iPad only.) |
| imageWithRoundedCorner |
When this blob represents an image, this adds a rounded corner to the underlying image. (iPhone, iPad only.) |
| imageWithTransparentBorder |
When this blob represents an image, this adds a transparent border to the underlying image. (iPhone, iPad only.) |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| toString |
Converts this blob to a String |
| Name | Type | Summary |
|---|---|---|
| height | Number |
When this blob represents an image, this is the height of the image in pixels. Otherwise, this is 0. read-only |
| length | Number |
The length of this blob in bytes. read-only |
| mimeType | String |
The mime type of this blob. read-only |
| nativePath | String |
When this blob represents a |
| size | Number |
When this blob represents an image, this is the total number of pixels in the image. Otherwise it returns the number of bytes in the binary data. (iPhone, iPad only.) read-only |
| text | String |
A UTF-8 string representation of the data in this blob. If this blob represents pure binary data, the value will be |
| width | Number |
When this blob represents an image, this is the width of the image in pixels. Otherwise, this is 0. read-only |