I was surprised to find today that I couldn\'t track down any simple way to write the contents of an InputStream to an OutputStream in Java. Obviou
InputStream
OutputStream
Using Guava's ByteStreams.copy():
ByteStreams.copy(inputStream, outputStream);