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

Android : Blob which returned by toImage Method has undefined mimeType (parity issue)

    Details

      Description

      Problem Description

      Blob which returned by toImage Method has undefined mimeType in Android. In iOS is working fine.

      Steps to reproduce

      1. Create a new mobile project
      2. Add support for android
      3. Paste the code into app.js

      var view = Ti.UI.createView({
          width : 100 ,
          height :100,
          backgroundColor:'blue'
      });
      var blob = view.toImage();
      alert('blob.width:' + blob.width +
               '\n blob.height:' + blob.height +
               '\n blob.mimeType:' + blob.mimeType);
      

      Expected Behavior:

      Expected Alert Message

      blob.width : 100
      blob.height : 100
      blob.mimeType : image/png

      Actual Behavior:

      iOS work properly, Buy Android alert below message

      Actual Alert Message

      blob.width : 100
      blob.height : 100
      blob.mimeType : undefined

        Attachments

          Activity

            People

            • Assignee:
              sunila Sunila
              Reporter:
              yomybaby Jong Eun Lee
              Reviewer:
              Ping Wang
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

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

                  Git Integration