python-pyodata icon indicating copy to clipboard operation
python-pyodata copied to clipboard

Support OData Edm.Stream

Open phanak-sap opened this issue 3 years ago • 1 comments

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: https://github.com/SAP/python-pyodata/blob/3975ed5365b55936872d8e6722545fdf2c481e80/pyodata/v2/service.py#L142

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.

phanak-sap avatar Jul 21 '21 17:07 phanak-sap

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

jenrik avatar Jan 09 '23 09:01 jenrik