What is the best way to copy the contents of one stream to another? Is there a standard utility method for this?
Easy and safe - make new stream from original source:
MemoryStream source = new MemoryStream(byteArray); MemoryStream copy = new MemoryStream(byteArray);