[TIMOB-23273] Windows: Cannot set Blob as image on ImageView
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-05-05T13:30:14.000+0000 |
Affected Version/s | Release 5.3.0 |
Fix Version/s | Release 5.4.0 |
Components | Windows |
Labels | imageview, qe-5.4.0, windows |
Reporter | Rene Pot |
Assignee | Gary Mathews |
Created | 2016-04-25T16:11:41.000+0000 |
Updated | 2016-06-24T20:51:37.000+0000 |
Description
When trying to get media from the Photo Gallery, I cannot set any blob to an ImageView, no matter how I try it. This is my code in the controller
function openMedia(){
Ti.Media.openPhotoGallery({
success: function(event) {
$.imageView.image = event.media;
}
mediaTypes: [ Ti.Media.MEDIA_TYPE_PHOTO ]
});
}
$.imageView is of course an ImageView. It is visible before this is set (300 high, 200 wide) using https://unsplash.it/200/300/?random as image.
An addition, this doesn't work either
A console.log of the nativePath DOES show content, I'm just not able to set it to the imageView.
Another addition: I tried this with 5.3.0.v20160415121959, 5.4.0.v20160420211446 and 5.2.2.GA
PR: https://github.com/appcelerator/titanium_mobile_windows/pull/668
Verified as fixed. Tested on: Microsoft Lumia 640 (8.1) Windows Simulator (8.1) Microsoft Lumia 640 (10) Windows Simulator (10) Windows 10 Pro Studio: 4.7.0.201606150733 Ti SDK: 5.4.0.v20160617074028 Appc NPM: 4.2.7-2 App CLI: 5.4.0-18 Node v4.4.4 *Closing Ticket.*