将字符串URL转换为位图时遇到问题。
“无法从Java.IO.FileInputStream转换为System.IO.Stream”
是否有解决此问题的解决方案?或如何将imgUrl转换为Bitmap,以便将其上传到Firebase存储?
public static Bitmap GetBitmap(string imgUrl)
{
File imageFile = new File(imgUrl);
FileInputStream fs = null;
Bitmap bm = null;
fs = new FileInputStream(imgUrl);
bm = BitmapFactory.DecodeStream(fs);
return bm;
}