Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2124] iphone & ipad toBlob is returning null

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-17T01:58:10.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.5.0
ComponentsiOS
Labelsdefect, ios, ipad, iphone, rplist, toblob
Reporterctredway
AssigneeBlain Hamon
Created2011-04-15T03:11:08.000+0000
Updated2011-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);

Comments

  1. Jeff Haynie 2011-04-15

    (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...

  2. Thomas Huelbert 2011-04-15

    3.2.2 ipad, 4.0.2 ipod touch 3rg gen.

  3. Thomas Huelbert 2011-04-15

    er. mobile sdk 1.5.0.5dc262e

JSON Source