📌  相关文章
📜  如何将位图转换为 base64 字符串 c# xamarin 通用 - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:23.049000             🧑  作者: Mango

代码示例2
Bitmap bitmap = BitmapFactory.DecodeResource(Resources, Resource.Drawable.ace1);
MemoryStream stream = new MemoryStream();
bitmap.Compress(Bitmap.CompressFormat.Jpeg, 100, stream);
byte[] ba = stream.ToArray();
string bal = Base64.EncodeToString(ba, Base64.Default);