Not able to convert Bitmap to perfect Base64 String in Android?

后端 未结 3 985
南笙
南笙 2021-02-13 21:59

I am working on an application in which I need to capture an Image from camera. After capture, I have to convert the Bitmap to Base64. After converting to Base6

3条回答
  •  余生分开走
    2021-02-13 22:39

    Ok, i solved it. the problem was in the storing of the base64 string on the database. my column was declare as "TEXT" and it cuts the other picture's parts because the lenght of the string. so i changes it to "LONGTEXT" and now it's work perfectly!

提交回复
热议问题