[TIMOB-2124] iphone & ipad toBlob is returning null
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:58:10.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | defect, ios, ipad, iphone, rplist, toblob |
Reporter | ctredway |
Assignee | Blain Hamon |
Created | 2011-04-15T03:11:08.000+0000 |
Updated | 2011-04-17T01:58:10.000+0000 |
Description
on iOS 4.1 both iPhone and iPad using 1.4.2 and 1.5 toBlob() returns null.
following code shows this:
var win = Titanium.UI.currentWindow;
var preview_frame = Ti.UI.createImageView({
image: 'http://alpha.eyejot.com/mediabits/davidg/0E15E94BE83D150000404089CD/2B5104C0436B6000007522895E.png?smt=31',
top: 20,
left: 0,
width: 320,
height: 187
});
// ----------------------------------- // did our photo finish
loading? // -----------------------------------
preview_frame.addEventListener('load', function(e)
{
var image_blob = preview_frame.toBlob();
Ti.API.info ("image_blob = " + image_blob);
});
win.add (preview_frame);
(from [b2c4fe69b81b8c69a539ae1e14b8a1a68bc1598f]) [#2124 state:fixed-in-qa] toBlob was old and was unaware of the image property or even of files and blobs being used with imageView. http://github.com/appcelerator/titanium_mobile/commit/b2c4fe69b81b8c69a539ae1e14b8a1a68bc1598f"> http://github.com/appcelerator/titanium_mobile/commit/b2c4fe69b81b8...
3.2.2 ipad, 4.0.2 ipod touch 3rg gen.
er. mobile sdk 1.5.0.5dc262e