Created
September 3, 2013 10:33
-
-
Save zacktian89/6422225 to your computer and use it in GitHub Desktop.
IRandomAccessStream to Byte Array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var reader = new DataReader(myMemoryStream.GetInputStreamAt(0)); | |
| var bytes = new byte[myMemoryStream.Size]; | |
| await reader.LoadAsync((uint)myMemoryStream.Size); | |
| reader.ReadBytes(bytes); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment