Hi
I have built a small client in XQuery that fetches zip files from another remote service using the http-module and stores them on disk with the help of the file-module.
Some of the returned zip files are really large and BaseX seems to need to materialize the files in memory before writing them to disk resulting in out of memory errors for some files.
Is there some way read the response in a more streamable fashion when using the http-module?
I tried using the fetch:binary function successfully but i really need the more extended functionality of the http-module.
#results in out of memory if the zip file is too large file:write-binary("file.zip", http:sendrequest(...)[2])
#works all the time. file:write-binary("file.zip", fetch:binary(...))
Regards, Johan