Thanks for the link!
However, I'm not sure if the examples provided in that message thread solve my problem. See comments below:
1) Ok.feed(slowlyStreamedFile).withHeaders(CONTENT_LENGTH -> "1800000", CONTENT_DISPOSITION -> "attachment;filename=filename.ext")
The first example uses the feed-method, which (based on Play Framework scala source code) generates a SimpleResult (I'm assuming this means the response is NOT chunked), but it only accepts enumerators. How would I transform an InputStream into an Enumerator? Can Enumeratees be used here? Could you provide an example of this, as I've just started to learn Scala?
2) Ok.stream(Enumerator.fromStream(is)).withHeaders(CONTENT_LENGTH -> length);
The second example uses the stream-method, which always generates a ChunkedResult, which sounds like it's always generating the response in chunked encoding, so I cannot use it. Am I right?