Created
July 15, 2017 03:02
-
-
Save yoshiyoshifujii/ba7c9f3b8450e6a858f840bab3fe63c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def readAsByteArray(in: InputStream): Array[Byte] = | |
Stream.continually(in.read).takeWhile(_ != -1).map(_.toByte).toArray |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment