Skip to content

Support OData Edm.Stream #164

Description

@phanak-sap

Metadata can expose some property as stream. Imagine PDF file, images or even video files. Python core 'io' module seems like good place to start, especially when working with service returning large files.

odata spec:
https://www.odata.org/blog/enhancing-odata-support-for-streams/

code reference point:

response.read(len(data)) # the len here will give a 'big enough' value to read the whole content

Quick fix for small files seems to be the PR #145 (sample metadata or network log was not provided, so just guessing). But when tried to write the test by myself for this PR and investigated possible usage scenario, found that the problem is bigger.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions