Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-12401

iOS: ImageView on SDK 3.0 not showing images from a specific server, while images on mobile's web browser are shown fine.

    Details

      Description

      Problem description
      As I stated above, ImageView on SDK 3.0 is not showing images from a specific server, although the same images on the same mobile's web browser are shown fine.

      Me and some other people from the community tried everything, changing the photo, changing the server, putting another photo in this server etc. and we came to a conclusion that it happens only when SDK 3.0 "meets" this server. (SDK 2.1.4 works fine with this server)

      An image example is this: http://www.lillikas.com/images/barosso2.jpg

      For example, if you download this image and upload it to another server it works fine.

      Workaround
      The following value within the cache header causes the issue:

      Cache-Control: no-cache

      I am not sure what's wrong with the 'no-cache' (perhaps the dash?!) but that's it. To get rid of it you need to configure your IIS not to send this value.

      Sample code

      var win = Ti.UI.createWindow({
      	backgroundColor : "#FFF"
      });
       
      var icon = Titanium.UI.createImageView({
      	image : "http://www.lillikas.com/images/barosso2.jpg",
      	left : 11,
      	top : 12,
      	height : 60,
      	width : 111
      });
       
      win.add(icon);
      win.open();
      

        Attachments

          Activity

            People

            • Assignee:
              vduggal Vishal Duggal (Inactive)
              Reporter:
              michaelmassalas Michael Massalas
              Reviewer:
              Max Stepanov
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-15409
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration