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

Popular posts from this blog

html - Outlook 2010 Anchor (url/address/link) -

javascript - Why does running this loop 9 times take 100x longer than running it 8 times? -

Getting gateway time-out Rails app with Nginx + Puma running on Digital Ocean -