c# copy stream to another code example
Example: c# clone stream
//Copy the bytes from a source stream to a destination stream.
sourceStream.CopyTo(destinationStream);
//NB you may want to reset the streams position
sourceStream.Seek(0, SeekOrigin.Begin);
destinationStream.Seek(0, SeekOrigin.Begin);