In my mobile app using Xamarin.Android, I implemented file attachment feature. In that, I got file content in Android.Net.Uri from
protected override async void OnActivityResult(int requestCode, Result resultCode, Intent data)
{
base.OnActivityResult(requestCode, resultCode, data);
Android.Net.Uri attachmentUri = data.Data;
}
Now, in order to upload the file as multipart message, I have to convert this uri to byte array. I searched a lot but everything in Java. I need such code in C#.