[TIMOB-8897] BlackBerry: Implement important Titanium.Blob functionality
GitHub Issue | n/a |
---|---|
Type | Story |
Priority | Medium |
Status | Closed |
Resolution | Duplicate |
Resolution Date | 2013-03-22T18:47:08.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 07 BB, 2013 Sprint 07, Release 3.2.0 |
Components | BlackBerry |
Labels | notable |
Reporter | Francois Boisvert |
Assignee | Russell McMahon |
Created | 2012-04-26T08:25:15.000+0000 |
Updated | 2017-03-03T06:42:09.000+0000 |
Description
* Titanium.Blob
* Titanium.Blob.text
* Titanium.Blob.toString
Implement basic Blob functionality: accessing data, getting size, appending, convert to string.
Blobs are primarily used to wrap native data structures or sources (ex: file descriptor, image, buffers).
The goal of this ticket is just implement the proxy front facing APIs. Internally it should be architected to
support wrapping various data sources. For the initial implementation support "buffer" based blobs would be a good first step.
Blobs are not creatable, but returns by various API methods in Titanium. For testing this ticket implement the Buffer.toBlob() method.
This should return a Blob which should allocate a buffer and copy the data over.
Blob streams and to image conversions will not be implemented at this time. Separate tickets for those will be created.
dup of 10083
Closing ticket due to Blackberry no longer being supported.