playframework 2.0 - Writing multipart response in SimpleResult in Scala play -
i trying write action multipart response in scala play. should able serve files saved in resposne multipart response.
apart writing individual file content headers , writing files stream manually in simpleresult, there existing api can looked into?
do mean chunked responses? there few examples in the documentation:
def index = action { val data = new fileinputstream(file) val datacontent: enumerator[array[byte]] = enumerator.fromstream(data) ok.chunked(datacontent) }
Comments
Post a Comment