Convertir IMemoryRandowAccessStream a byte array (byte[]) UWP
// This is where the byteArray to be stored. var bytes = new byte[myMemoryStream.Size]; // This returns IAsyncOperationWithProgess, so you can add additional progress handling await myMemoryStream.ReadAsync(bytes.AsBuffer(), (uint)myMemoryStream.Size, Windows.Storage.Streams.InputStreamOptions.None);
// This is where the byteArray to be stored. var bytes = new byte[myMemoryStream.Size]; // This returns IAsyncOperationWithProgess, so you can add additional progress handling await myMemoryStream.ReadAsync(bytes.AsBuffer(), (uint)myMemoryStream.Size, Windows.Storage.Streams.InputStreamOptions.None)