c# - How to convert Bitmap image to Base64PNG string in monodroid -
hi want convert bitmap image base64png format tried using following code.i don't think code works enough.any suggestions appreciated.
bitmap immagex = signature; memorystream baos = new memorystream(); immagex.compress(bitmap.compressformat.png, 100, baos); byte[] b = baos.toarray(); string base64encodestring = base64.encodetostring(b, base64.default);
i belive trick.
string tempbase64 = convert.tobase64string(b);
goodluck.
Comments
Post a Comment