Hi, I would like to ask for a clarification on how `mapMaterializedValue` works, I think this might be the cause for this problem.
I am trying to receive a large file upload, and I am copying to the file system using something like: val sink = FileIO .toPath(path) .mapMaterializedValue(_.map(result => (uri, result.count))) val source = fileData.entity.dataBytes // fileData is a StrictForm.FileData val f = source.to(sink).run() This somehow causes the file to be copied to memory, which causes the jvm to stop with an out of memory exception. Can `mapMaterializedValue` be the cause for this behaviour? Thank you, Simao -- >>>>>>>>>> Read the docs: http://akka.io/docs/ >>>>>>>>>> Check the FAQ: >>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user --- You received this message because you are subscribed to the Google Groups "Akka User List" group. To unsubscribe from this group and stop receiving emails from it, send an email to akka-user+unsubscr...@googlegroups.com. To post to this group, send email to akka-user@googlegroups.com. Visit this group at https://groups.google.com/group/akka-user. For more options, visit https://groups.google.com/d/optout.