title: Convert OutputStream to Okio Source
body: <p>I am trying to find elegant way to convert <code>OutputStream</code> produced by <code>bitmap.compress(Bitmap.CompressFormat.PNG, 100, outStream)</code> method to Okio's <code>Source</code> / <code>InputStream</code> (needed to further manipulate data - encoding) while maintaining the data buffer.</p>
  
  <p>I tried using</p>
  
  <pre><code>val pipe = Pipe(100)
  bitmap.compress(Bitmap.CompressFormat.PNG, 100, Okio.buffer(pipe.sink()).outputStream())
          saveFile(File("filename"), pipe.source())
  </code></pre>
  
  <p>but this hangs on <code>bitmap.compress</code>.</p>