Write the storage to an OutputStreamparamstream the OutputStream to which the stored data should be writtenexceptionIOException on problems writing to the specified stream