Convert InputStream to ByteArray using Apache Commons IO