using (var fileStream = File.Create("C:PathToFile")) { myStream.Seek(0, SeekOrigin.Begin); myStream.CopyTo(fileStream); }