I posted this question earlier today on StackOverflow,but without answer ,and need this to be solved tonight, that's why am also posting it here...so sorry for cross posting but i am desperate :\
so basically when i try to send string to server i am getting this error.I am trying to send image ,as string, with SharedPreferences from fragment to viewModel and then send it with other data that server expect
my fragment code:
and in my view model i reciving and seting this image this wey:
It looks like the Base64 encoded representation of image got corrupted somehow.
The image metadata indicates a type of jpeg with a resolution of 720×1560 and an image file size of 2.92 kB. There are 3987 characters in the Base64 encoding, which translates to 2990 unencoded bytes, which does match the size indicated in the header.
When I tried to view it, you can tell it is a screen cap from an Android handset, but it only partially rendered:
expectation is the root of all heartache - shakespeare. tiny ad:
SKIP - a book about connecting industrious people with elderly land owners