Hi,
I am currently using ResultSequence class in com.marklogic.xcc,
I am trying to read sequence of multiple inputstream as,
ResultSequence resultSeq;
while (resultSeq.hasNext()) {
InputStream obj = resultSeq.next().asInputStream();
}
But I am getting Stream closed every time and i am getting an exception.
My aim is direcly hook this stream object to apache wink layer in Restful
webservice implementation as,
Response.status(200).entity(obj).type("multipart/mixed").build();
But Stream Closed exception is caught every time.
According to api of hasNext(),
“Note that if the current item is large (node, binary, text) and has not yet
been fully consumed by the client, it's value may be flushed and lost as the
result stream is positioned to the next item.”
My content is huge node. So it value is getting flushed and lost every time
when I use hasNext() api.
Is there any alternative to achieve streaming of huge multiple nodes directly
hooking to response object of wink from MarkLogic using sequence inputstream ?.
Thanks,
Srinivasan.V
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general