Build the finished byte array
This method is only supported on ByteArrayOutputStreams. However, a HTTPUrlConnection OutputStream should be passed instead.