writeToOutputStream
Writes this stream to the given OutputStream, then closes it.
Parameters
outputStream
The OutputStream to which the contents of this stream will be written
Writes this stream to the given OutputStream, then closes it.
The OutputStream to which the contents of this stream will be written