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

On iOS Document viewer html files in tempDirectory cannot show images

    Details

    • Type: Bug
    • Status: Open
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: TiAPI
    • Environment:

      iOS 8.1
      SDK 3.4.1.GA
      iPad Mini and iOS Simulator 8.1

      Description

      Opening a html document saved in the temp directory (deviceId/tmp), is impossible to show images added with <img src="..." /> tag.
      I tried to add the image as link to filesystem, web url and base64, in png and gif: nothing.
      <img src="{{imagesPath}}filename.png" />
      <img src="http://url" />
      <img src="data:image/gif;base64,base64" />

      imagesPath is a concatenation of Ti.Filesystem.resourcesDirectory and the filepath inside assets directory.
      base64 is the file conversion, Ti.Utils.base64encode(logoFile.read())

      I tried to print the document and on the paper image was printed, opening the file from tmp directory with a browser (Chrome, Firefox, Safari) the image is always showed.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              pic Mauro Piccotti
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

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

                  Git Source Code