Horje
how to convert a Bitmap to a base64 string c# xamarin universal Code Example
how to convert a Bitmap to a base64 string c# xamarin universal
using(var stream = new MemoryStream())
{
   yourBitmap.Compress(Bitmap.CompressFormat.Png,0, stream);

    var bytes = stream.ToArray();
    var str = Convert.ToBase64String(bytes);
}
bitmap to string android xamarin
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);




Csharp

Related
c# get today's date Code Example c# get today's date Code Example
c# round to 2 decimal places Code Example c# round to 2 decimal places Code Example
C# create DataTable Code Example C# create DataTable Code Example
how to check if textbox is empty in c# Code Example how to check if textbox is empty in c# Code Example
sum of digits in c# Code Example sum of digits in c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7