With Scala, what is the best way to read from an InputStream to a bytearray?
I can see that you can convert an InputStream to char array
Source.fromInput
import scala.tools.nsc.io.Streamable Streamable.bytes(is)
Don't remember how recent that is: probably measured in days. Going back to 2.8, it's more like
new Streamable.Bytes { def inputStream() = is } toByteArray