最佳答案
将图像(最大200KB)转换为 Base64String 的代码是什么?
我需要知道如何使用 Android,因为我必须在我的主应用程序中添加将图像上传到远程服务器的功能,将它们以字符串的形式放入数据库的一行中。
我在 Google 和 Stack Overflow 中搜索,但是我找不到我负担得起的简单示例,而且我也找到了一些示例,但是它们并没有谈到转换成字符串。然后我需要转换成一个字符串,通过 JSON 上传到我的远程服务器。