{"id":188,"date":"2016-11-22T12:21:30","date_gmt":"2016-11-22T12:21:30","guid":{"rendered":"http:\/\/vladymix.es\/?p=188"},"modified":"2016-11-22T12:21:30","modified_gmt":"2016-11-22T12:21:30","slug":"irandomaccessstream-to-byte-array","status":"publish","type":"post","link":"https:\/\/vladymix.es\/wordpress\/index.php\/2016\/11\/22\/irandomaccessstream-to-byte-array\/","title":{"rendered":"IRandomAccessStream to Byte Array"},"content":{"rendered":"<p>Convertir IMemoryRandowAccessStream a byte array \u00a0(byte[]) \u00a0UWP<\/p>\n<pre class=\"lang:c# decode:true\">\/\/ This is where the byteArray to be stored.\r\nvar bytes = new byte[myMemoryStream.Size];\r\n\r\n\/\/ This returns IAsyncOperationWithProgess, so you can add additional progress handling\r\nawait myMemoryStream.ReadAsync(bytes.AsBuffer(), (uint)myMemoryStream.Size, Windows.Storage.Streams.InputStreamOptions.None);<\/pre>\n<p>&nbsp;<\/p>\n<pre class=\"lang:c# decode:true \">\/\/ This is where the byteArray to be stored.\r\nvar bytes = new byte[myMemoryStream.Size];\r\n\r\n\/\/ This returns IAsyncOperationWithProgess, so you can add additional progress handling\r\nawait myMemoryStream.ReadAsync(bytes.AsBuffer(), (uint)myMemoryStream.Size, Windows.Storage.Streams.InputStreamOptions.None)<\/pre>\n<p>&nbsp;<\/p>\n<p>Fuente:\u00a0<a href=\"https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/38c6cb85-7454-424f-ae94-32782c036567\/irandomaccessstream-to-byte-array?forum=winappswithcsharp\">https:\/\/social.msdn.microsoft.com\/Forums\/en-US\/38c6cb85-7454-424f-ae94-32782c036567\/irandomaccessstream-to-byte-array?forum=winappswithcsharp<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Convertir IMemoryRandowAccessStream a byte array \u00a0(byte[]) \u00a0UWP \/\/ This is where the byteArray to be stored. var bytes = new&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[7,4],"tags":[],"class_list":["post-188","post","type-post","status-publish","format-standard","hentry","category-c","category-windows-store-and-phone"],"_links":{"self":[{"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/188","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=188"}],"version-history":[{"count":6,"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":194,"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/188\/revisions\/194"}],"wp:attachment":[{"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vladymix.es\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}