Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-1448

Base64 image are not displayed in the application

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Create a course with a page
      2. Create a page
      3. In the page content, use the html editor and paste this:

         <p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXoAAAC1CAIAAADeC6MSAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADeSU
        RBVHhe7cExAQAAAMKg9U9tCF8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgFcNIqgAAR64vmIAAAAASUVORK5CYII=" /></p>
        

      1. Check the images can be seen in the mobile app.
      Show
      Create a course with a page Create a page In the page content, use the html editor and paste this: < p >< img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXoAAAC1CAIAAADeC6MSAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADeSU RBVHhe7cExAQAAAMKg9U9tCF8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgFcNIqgAAR64vmIAAAAASUVORK5CYII=" /></ p > Check the images can be seen in the mobile app.
    • Difficulty:
      Easy
    • Affected Branches:
      MOODLE_30_STABLE
    • Fixed Branches:
      MOODLE_30_STABLE

      Description

      Moodle mobile android and windows phone can't show a base64 image.

      Steps:
      1- Create a course
      2- Create a page
      3- In the page content, use the html editor and paste this:

       <p><img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXoAAAC1CAIAAADeC6MSAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAADeSU
      RBVHhe7cExAQAAAMKg9U9tCF8gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgFcNIqgAAR64vmIAAAAASUVORK5CYII=" /></p>
      

      4- Save and try to see the black image in the web browser
      5- Open the Moodle Mobile and open the page that you have created
      6- Will appear a smal box with border instead of the image

        Attachments

          Activity

            People

            Assignee:
            pferre22 Pau Ferrer
            Reporter:
            romariox Romário Rodrigues Ramos
            Peer reviewer:
            Dani Palou
            Integrator:
            Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              15/Apr/16