Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23273] Windows: Cannot set Blob as image on ImageView

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionFixed
Resolution Date2016-05-05T13:30:14.000+0000
Affected Version/sRelease 5.3.0
Fix Version/sRelease 5.4.0
ComponentsWindows
Labelsimageview, qe-5.4.0, windows
ReporterRene Pot
AssigneeGary Mathews
Created2016-04-25T16:11:41.000+0000
Updated2016-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.

Comments

  1. Rene Pot 2016-04-25

    An addition, this doesn't work either
       $.imageView.image = event.media.nativePath
       
    A console.log of the nativePath DOES show content, I'm just not able to set it to the imageView.
  2. Rene Pot 2016-04-25

    Another addition: I tried this with 5.3.0.v20160415121959, 5.4.0.v20160420211446 and 5.2.2.GA
  3. Gary Mathews 2016-05-05

    PR: https://github.com/appcelerator/titanium_mobile_windows/pull/668
  4. Josh Longton 2016-06-24

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

JSON Source