title: Scala: InputStream to Array[Byte]
body: <p>With Scala, what is the best way to read from an InputStream to a bytearray?</p>
  
  <p>I can see that you can convert an InputStream to char array</p>
  
  <pre><code>Source.fromInputStream(is).toArray()
  </code></pre>