Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support OData Edm.Stream #164

Open
phanak-sap opened this issue Jul 21, 2021 · 1 comment
Open

Support OData Edm.Stream #164

phanak-sap opened this issue Jul 21, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@phanak-sap
Copy link
Contributor

phanak-sap commented Jul 21, 2021

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.

@jenrik
Copy link

jenrik commented Jan 9, 2023

Is there currently a workaround such that it is possible to load only the parts of the schema that does not include Edm.Stream?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants