title: Send data from InputStream over Akka/Spring stream
body: <p>Here is my previous question: <a href="https://stackoverflow.com/questions/42328403/send-big-file-over-reactive-stream">Send big file over reactive stream</a></p>
  
  <p>I have managed to send file over Akka stream using FileIO.fromPath(Paths.get(file.toURI())) and it works fine. However, I would like to compress and encrypt file before sending it. I have created method, that opens FileInputStream, routes it through compression stream and then through encryption stream and now I would like to direct it into socket using Akka stream.</p>
  
  <p>File -> FileInputStream -> CompressedInputStream -> EncryptedInputStream -?> Spring/Akka stream</p>
  
  <p>The point is, I can compress/encrypt file on-the-fly while reading it chunk by chunk (I am not creating additional files on disk), and I do not see how can I send InputStream (compressed and encrypted) over Akka/Spring stream (by Spring stream I mean Akka stream under project Reactor API).</p>
  
  <p>Question is: how to compress, encrypt and send file without saving whole compressed/encrypted file to disk at no point?</p>