Stream support in Odata V4

2019-05-06 22:15发布

问题:

What is the recommended way in handling file stream GET, POST AND DELETE operations. I got following link on how to do it but its for V3 version. While porting this solution to OData V4 Iran into bunch of issues which raised following questions.

  1. Is the Stream support is available in Odata V4?
  2. If Yes, How do I set HasStream property on IEdmEntityType. The IEdmModel.SetHasDefaultStream seems like deprecated now in V4.
  3. Is there any sample which explains how I can go ahead with enabling POST, GET for stream in OData V4 Service.

http://blogs.msdn.com/b/mrtechnocal/archive/2013/10/31/media-resource-support-for-odata-in-web-api.aspx

If this feature not yet built up in web apis yet do we have any future release plans for this?

-Samir

回答1:

Opened an issue on GitHub, please refer to https://github.com/OData/WebApi/issues/328#issuecomment-101205048.