Bitmap changes size. Gets almost 20 times larger

偶尔善良 提交于 2019-12-11 19:55:53

问题


In my android app the user takes and saves a picture it is then converted to a bas64 string where it is about 55000 characters long. Then later in the program I retrieve the image and again convert it to a base64 string except now its over 2 million characters. Can any one explain why this happens?

code for re-retrieving the image.

Bitmap imgBitmap = MediaStore.Images.Media.getBitmap(getActivity().getContentResolver(), Uri.parse(imgFilePath));

来源:https://stackoverflow.com/questions/21023693/bitmap-changes-size-gets-almost-20-times-larger

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!