I have an Android app which uses Base64 to encode images, and encoded strings are stored on a server. I am now making an iOS client for the same app and am struggling to make it
The Base64 provoided are from different PNG encodings. The headers are different, Android has a "sBIT" chunk and iOS has a "sRGB" chunk.
Thus the problem is not Base64 but the representatins prpovided by the two systems.
Decoded portions
Android:
âPNG
IHDR††≠zsBIT€·O‡ÑIDAT
iOS:
âPNG
IHDR»»≠XÆûsRGBÆŒÈiDOTd(ddp`ùıºIDAT