You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Mitko Kolev (JIRA)" <ji...@apache.org> on 2016/01/25 22:49:39 UTC

[jira] [Created] (OLINGO-858) org.apache.olingo.odata2.api.processor.ODataResponse enity is not streamed

Mitko Kolev created OLINGO-858:
----------------------------------

             Summary: org.apache.olingo.odata2.api.processor.ODataResponse enity is not streamed
                 Key: OLINGO-858
                 URL: https://issues.apache.org/jira/browse/OLINGO-858
             Project: Olingo
          Issue Type: Improvement
          Components: odata2-core
    Affects Versions: V2 2.0.5
            Reporter: Mitko Kolev


The entity of the {{org.apache.olingo.odata2.api.processor.ODataResponse}} is not streamed.

{code}
ODataResponse.newBuilder().entity(new ByteArrayInputStream(someInputStream)).header("Content-Type", "text/plain")
                .status(HttpStatusCodes.OK).build()
{code} 

It would make sense to stream this directly in the HTTP response. This is extremely painful when the entity does not fit in memory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)