[TIMOB-6811] Android: Media - blob.length exception: method not supported
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2012-01-23T16:18:06.000+0000 |
Affected Version/s | Release 1.8.0.1 |
Fix Version/s | Sprint 2012-01, Release 2.0.0, Release 1.8.1 |
Components | Android |
Labels | module_media, parity, qe-testadded |
Reporter | Ruben Fonseca |
Assignee | Allen Yeung |
Created | 2011-12-20T08:26:12.000+0000 |
Updated | 2012-03-03T23:30:50.000+0000 |
Description
Problem
Calling "length" on a blob on SDK 1.8.0.1.RC3 returns 0 and prints an error on the log. Example code:Test case
Ti.Media.openPhotoGallery({
success: function(e) {
Ti.API.warn("----> " + e.media.length);
}
});
Exceptions
The above results in the following error on the log:
W/TiBaseFile( 313): (KrollRuntimeThread) [94,11266] Method is not supported org.appcelerator.titanium.io.TitaniumBlob : size
Hi Ruben Could you state the Android version and Javascript runtime you tested, please, as requested in [JIRA Ticket Checklist](https://wiki.appcelerator.org/display/guides/How+to+Submit+a+Bug+Report#HowtoSubmitaBugReport-JIRATicketChecklist), and then I can move it to the main project. Cheers
Please reopen when you have had a chance to add the missing info, and I will escalate it. Thanks
Hi Paul! Thanks for your help! I've added the Android versions and runtime to the Environment section of the bug. Thanks!
Thanks for the update, Ruben. I have moved the ticket across.
Just a update that the problem still exists on 1.8.0.1 final.. It kinda worries me how such a huge problem, with such a simple failing test case is ignored on the final version. I cannot update any of my apps to 1.8.0.1 because of this bug.
PR Ready: https://github.com/appcelerator/titanium_mobile/pull/1134 For the fail case, use the app.js from the ticket, and verify that you get the error and 0 as the length when you select a picture from the photo gallery. With the changes from the PR, it should display the size of the selected photo.
Closing bug. Verified fix on: SDK build: 1.9.0.v20120112104633 Runtime: V8, Rhino Titanium Studio, build: 1.0.8.201201111843 Device: Droid 3 (2.3.4)