It seems when we send base64 encoding via HTTP POST , specifically the "+" character gets replaced with a " " which might corrupt the data