位图转换为字符串 [英] Convert Bitmap to String

查看:330
本文介绍了位图转换为字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以转换成位图字符串?
然后转换成字符串回位图?

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

先谢谢了。

推荐答案

code似乎是要转换为字符串的内容:

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

这显示了如何做到既:
<一href=\"http://stackoverflow.com/questions/4837110/how-to-convert-a-base64-string-into-a-bitmap-image-to-show-it-in-a-imageview\">How到Base64字符串转换成位图图像,显示在一个ImageView的?

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

而这其中显示转换回为.bmp:
<一href=\"http://stackoverflow.com/questions/3801760/android-$c$c-to-convert-base64-string-to-bitmap\">Android code,将Base64的字符串作为位图

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 :)

史蒂夫

这篇关于位图转换为字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆