title: Is there a Scala stdlib function to transform a Stream[Byte] into a Stream[InputStream] where each InputStream is N metabytes in a purely lazy way?
body: <p>I'm trying to upload a large Stream[Byte] to S3 as a single file using the Multipart Upload API. I need to write a function <code>Long =&gt; Stream[Byte] =&gt; Stream[InputStream]</code> where long describes the size of the InputStream. I'm trying to do this lazily such that I don't need to hold the entire InputStream in memory at once.</p>
  <p>Is there a function in the stdlib to do this?</p>