Could anyone help me about how to create image file from byte array in documents Xamarin Android and get the new path for the image please ?
Here my code :
Stream stream = ContentResolver.OpenInputStream(data.Data);
Bitmap bitmap = BitmapFactory.DecodeStream(stream);
MemoryStream memStream = new MemoryStream();
bitmap.Compress(Bitmap.CompressFormat.Jpeg, 50, memStream);
byte[] picData;
picData = memStream.ToArray();
now picData is byte array, and I need to create a Jpeg file in doucments and get the new path .. Thanks advance.