Uploaded image for project: 'Islandora'
  1. Islandora
  2. ISLANDORA-2010

Let tuque getContent() return stream wrappers.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: Tuque API
    • Labels:
      None

      Description

      Currently, NewFedoraDatastream::getContent() forces you to copy content to a (likely-temporary) file somewhere. This is really heavy and could be made a lot resource-friendlier if it just fopen()'d the content and handed the resource back. This could work with both files and strings using the data:// stream wrapper for base64-encoded binary content. It'd also make a good alternative to the 'content' magic property, which loads the whole file into memory at request time.

      Recommendation: passing NULL to a NewFedoraDatastream::getContent() should return a stream resource.

        Attachments

          Activity

            People

            • Assignee:
              daitken Daniel Aitken
              Reporter:
              daitken Daniel Aitken
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: