You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can get fileStream and responseHeaders in a single request by using the low-level Generic OData Client:
(ex. /FileService/FileCollection(id='abc')/$value?foo=bar)
The code is perfectly fine if used internally. Since it's a bit verbose we are currently not advertising it as much.
In case you prefer a one-liner / convenience API for your code fileService.withServicePath("FILE_SRV"), then we'll consider a feature request. In that case please let us know the urgency, whether it's considered a blocker and when to expect such changes, if there is a schedule for you.
Alternatively you could just run the HTTP request yourself:
Issue Description
When I generate v2 clients out of the EDMX file, I have no chance to request the binary data stream without requesting the entity first.
Important information:
for example to receive a files content with a "file-service", I have to call this:
This are two HTTP requests, one to get the file, and one to get the
/$value
.In my case, the
getFileByKey()
(FILESET_GET_ENTITY) is not implemented and I have to use this workaround to receive the files content:This is not very convenient and I would prefer to receive the
fileService
via injection and receive the stream like this:Further, I have no chance to receive the HTTP response headers from the file
/$value
request. I miss something likeImpact / Priority
My solution will be to not use the generated client but to code the HTTP request on my own. :-(
(Only for this request.)
Error Message
(see above, something like Method FILESET_GET_ENTITY not implemented. if I call
executeRequest(...)
)Project Details
Dependencies and configuration
Checklist
The text was updated successfully, but these errors were encountered: