How to make an Enumerator not from a file?

I am developing a web application using scala + play 2.0.4. When the program starts, it pulls a huge amount of data from mongoDB and tries to make a csv file and send it to the client browser to download the csv file. But the data was so large that the browser couldn't wait long without some kind of response. I tried to use Ok.stream () and Enumerator, but I don't know how to use it and deal with this problem. Could you please tell me how to fix this problem using Ok.stream and Enumerator?

+3
scala playframework-2.0


source to share


No one has answered this question yet

Check out similar questions:

12
Scala Playback Framework: duplicate mappings of compiled css files
2
Convert Playback Player to Reactive Stream Publisher
2
Elegant Iteratee & # 8594; Play redirect enumerator
2
Stopping enums and iterators in PlayFramework on request closing
1
How to execute terminal commands through scala
1
IDEA 12 Create Scala Play 2.0: Changed Project Files
0
Serializing Scala enum to jersey / jackson doesn't work for me
0
Sending a file to the Java Play client
0
How do I make a CSV file as a stream from a ResultSet in Java?
0
Download text / csv content as huge file from server in Angular



All Articles
Loading...
X
Show
Funny
Dev
Pics