Hi i want to convert bitmap image to base64png format Please any one tell me how to convert it.
This should work. Could not try it out yet.
using(var stream = new MemoryStream())
var bytes = stream.ToArray();
var str = Convert.ToBase64String(bytes);
@SebastianS How can we do the inverse? Bitmap to base64 string.
@FranciscoGG Bitmap to base64 string is written in the answer. Bitmap as byte array from base64 can be done with
var imageBytes = Convert.FromBase64String(YourString);
Hi How I can convert jpg format file into base64 format
guide me .................
i have the file in the drive supose how can i do that
With Bitmap to JPEG format:
bitmap.Compress (Bitmap.CompressFormat.Jpeg, 0, stream);
@SebastianSeidel.9226 Thanks You!
Solution this It work for me ^^
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies