Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Convert Bitmap to String

Tags:

android

Can I convert Bitmap to String? And then convert the String back to the Bitmap?

Thanks in advance.

like image 439
cht Avatar asked Nov 05 '22 00:11

cht


1 Answers

This code appears to be what you want to convert to a string:

This shows how to do both: How to convert a Base64 string into a BitMap image to show it in a ImageView?

And this one shows converting back to a .bmp: Android code to convert base64 string to bitmap

Google is your friend... you should always ask your friends if they know the answer first :)

Steve

like image 120
Steve Avatar answered Nov 15 '22 12:11

Steve