I want to convert a WriteableBitmap to byte[] and there are tons of examples in Internet yet not a single one works, or has methods that are not current in my runtime which is Windows Phone 8.1 store project. Here is my WriteableBitmap object.
BitmapImage bmpImage = new BitmapImage(new Uri("ms-appx:///Assets/no_pic.png", UriKind.Absolute));
WriteableBitmap DefaultPhotoBmp = new WriteableBitmap(bmpImage.PixelWidth, bmpImage.PixelHeight);
When using
DefaultPhotoBmp.ToByteArray();
from WriteableBitmapEx library I dont think it turns the image inside into a byte array but the WriteableBitmap object into a byte array.. I need the image
All I want to do is convert the picture inside in byte array and send it via HTTP. How?