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)

Reply via email to