OK. But since it critical issue and need immediate solution this is what I am going to do:
Passing Base64 string format of image to gateway.
At gateway this is handled as EDM.Sting and passed to bapi.
In backend, the bapi converts this string to binary and stores in DDIC.
Hope this is correct and works.
Correct me if I am wrong