Titanium JIRA Archive
Appcelerator Community (AC)

[AC-1848] iOS: ImageView doesn't load remote images

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionCannot Reproduce
Resolution Date2013-10-07T01:59:34.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsTitanium SDK & CLI
LabelsimageView, ios
ReporterSameeh Harfoush
AssigneeMauro Parra-Miranda
Created2013-10-01T07:38:27.000+0000
Updated2016-03-08T07:40:45.000+0000

Description

i am trying to load a remote image from my web server. all works well on the iOS 7 simulator and android but when i run the code of the iOS device the image doesn't load at all. i tested the image url on the browser with no problems at all. testcase: var picImage = Ti.UI.createImageView({ width : 100, height : 100, borderColor : Constant.borderColor, borderWidth : 3, left : 10, right : 10, top : 10, bottom : 10 }); picImage.image ='http://192.168.13.53:8888/home/home_images/brate_facebook_logo.png';

Comments

  1. Mauro Parra-Miranda 2013-10-07

    Hello! Can you please try your own code with another image? Our test shows that the issue could be that your simulator or device didn't have access to that image. Please test that image from your simulator/device'safari to check if you are reaching the server. Best, Mauro
  2. Sameeh Harfoush 2013-10-07

    i tried the same code with same image but this time i loaded it from my online server (i.e using a domain address); all worked well and the device was able to render the image. but when i use my local ip/server the image doesn't load on device. note that the same test-case works well on the iOS simulator and android device. i still need to test loading the image using the online server via a servlet though
  3. Mauro Parra-Miranda 2013-10-07

    Hello, did you test your image address using safari? I mean, the one with the 192... Best, Mauro
  4. Sameeh Harfoush 2013-10-08

    yes i did it works well. the image loads normally. i also tried to run the same scenario on other network but still have the same problem.
  5. Sameeh Harfoush 2013-11-26

    the problem was from GWT jetty server. the images loads normally when i run the servlet from tomcat... thanks

JSON Source