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

Android: Ti.Utils.base64encode for cannot encode (Image) Ti.Blob anymore. Result = null

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: Release 7.0.2
    • Fix Version/s: Release 7.0.2
    • Component/s: Android
    • Labels:

      Description

      Ti SDK: 7.0.2.v20180207091331
      Device: Samsung Galaxy S8+
      Android: 7.0.0

      Works fine with Ti SDK 7.0.1.GA

      Test Case:

        Ti.Media.showCamera({
          success:function(event) {
            if(event.mediaType === Ti.Media.MEDIA_TYPE_PHOTO) {
              var image = event.media;
       
              Ti.API.info(Ti.Utils.base64encode(image).text);
            }
          },
          cancel:function() {
          },
          error:function(err) {
            Ti.API.error(err);
          },
          mediaTypes:[Ti.Media.MEDIA_TYPE_PHOTO]
        });
      

      Expect Output: A random encoded string

      Actual output: Uncaught TypeError: Cannot read property 'text' of null

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                hknoechel Hans Knöchel
                Reporter:
                fahad86 Muhammad Ahmed Fahad
                Reviewer:
                Joshua Quick
              • Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

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

                    Git Source Code