Stream support in Odata V4

别来无恙 提交于 2019-12-22 08:45:05

问题


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.



来源:https://stackoverflow.com/questions/30043442/stream-support-in-odata-v4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!