Convert IBuffer to Byte Array

If you are looking how to convert an IBuffer to a byte array, you have to use System.Runtime.InteropServices.WindowsRuntime.

Here the code :

using System.Runtime.InteropServices.WindowsRuntime;

IBuffer myBuffer ...

byte[] myArray ...

myBuffer.ToArray();
Comments are closed