I am writing an application that reads some data from a database and need 
to transform that data to XML. That XML should be streamed as a response to 
a web request.

The code for creating the XML elements is already working. I am using 
clojure.data.xml for that and it works very nice.

My problem now is that I don't know how to stream the XML to the response 
in a Ring application. I only can get the whole XML string in one piece out 
to the client. 

That gives a certain delay until first data gets to the client and memory 
consumption is quite high.

I already tried to get it with ring.util.io/piped-input-stream connected to 
the :body of a Ring response but had no success.

Can anyone please give me a hint?

Thanks a lot in advance,

Marc

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to