From: Alistair M. <ali...@go...> - 2010-07-22 10:21:42
|
Hi folks, I've just noticed that the request:get-data() function [1] reads all of the data sent in the body of the http request into a byte array before doing anything else with it. This means that the amount of data you can send to an xquery web service, and the number of concurrent requests with any substantial payload, will be limited by the size of the jvm. Can anyone point me at examples of how to stream both binary content and xml data from an http request directly to the exist db? I'd like to be able to implement xquery functions that do this, so I could scale an xquery-based web service to multiple concurrent requests with multi-GB binary and xml content. I've had a look around in the eXist src, but any pointers would be greatly appreciated. Cheers Alistair [1] https://exist.svn.sourceforge.net/svnroot/exist/trunk/eXist/src/org/exist/xquery/functions/request/GetData.java -- Alistair Miles Head of Epidemiological Informatics Centre for Genomics and Global Health <http://cggh.org> The Wellcome Trust Centre for Human Genetics Roosevelt Drive Oxford OX3 7BN United Kingdom Web: http://purl.org/net/aliman Email: ali...@gm... Tel: +44 (0)1865 287669 |