How to rotate an image converted into a byte array in C #?

0

I'm using Xamarin.Forms to take a photo which I take it vertically and I have a photo more or less like this:

This photo is a byte array and I save it in a SQL Server database, but when I show it it is rotated like this:

This only happens with iOS devices, with Android devices my image comes out as I take it.

How can I rotate the byte array [], 90 ° clockwise?

so that my image is inserted vertically and NOT horizontally?

    
asked by Luis David De La Cruz Bautista 23.01.2018 в 17:55
source

0 answers