private byte[] ImageToByeArray(WriteableBitmap wbm)
{
using (Stream stream = wbm.PixelBuffer.AsStream())
using (MemoryStream memoryStream = new MemoryStream())
{
stream.CopyTo(memoryStream);
return memoryStream.ToArray();
}
}This code snippet for Convert WriteableBitmap image to Byte array in WinRT using C#.Use the below Code,it works for windows phone 8.1 RT,Windows 10 Mobile Also.
