Hi,
Please try this below method
public static async Task<Stream> GetPhotoFromSDCard(String Imageurl)
{
try
{
StorageFile imgFile = await StorageFile.GetFileFromPathAsync(Imageurl);
using (Stream fileStream = await imgFile.OpenStreamForReadAsync())
{
StreamReader reader = new StreamReader(fileStream);
reader.BaseStream.Seek(0, SeekOrigin.Begin);
//BitmapImage bmp = new BitmapImage();
//bmp.SetSource(reader.BaseStream);
return reader.BaseStream;
}
}
catch (Exception e)
{
return null;
}
}