I have created aws api to accept image. and trying to test with postman , by uploading binary Data(PNG Image). I am not adding any additional content-Type (i have tried ,it didn't work)
and i am getting 400 error that it could not parse body as:
{
"message": "Could not parse request body into json: Could not parse payload into json: Unrecognized token
\'iVBORw0KGgoAAAANSUhEUgAAB0oAAAM4CAYAAABC6WGlAAAMaWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdUU8kanluSkJDQAhGQEnoTpFcpIbQIAlIFGyEJJJQYEoKKvSwquHYRxYquiii4ugKyFsSuLIIN\':
was expecting (JSON String, Number, Array, Object or token \'null\', \'true\' or \'false\')\n at
[Source: (byte[])\"iVBORw0KGgoAAAANSUhEUgAAB0oAAAM4CAYAAABC6WGlAAAMaWlDQ1BJQ
0MgUHJvZmlsZQAASImVVwdUU8kanluSkJDQAhGQEnoTpFcpIbQIAlIFGyEJJJQYEoKKvSwquHYRxYquiii4ugKyFsSuLIIN+2JBRVkXdVEUlTchAV33lfP+c+bOl2/++dudyZ0BQLOPK5HkoFoA5Irzp
XHhwcwJKalM0lNAAsZAGxABgcuTSVixsVEAylD
/d3l3EyCK/pqjwtY/x/+r6PAFMh4AyCSI0/kyXi7EjQDgm3kSaT4ARAVvMT1fosDzIdaVwgAhX
qfAmUq8V4HTlfjYoE5CHBviVgDUqFyuNBMAjXuQZxbwMqEdjU8QO4v5IjEAmqMgDuAJuXyIF
bGPys2dpsBlENtCfQnEMB7gnf6Nzcy/2U8fts/lZg5jZV6DohYikklyuDP/z9L8b8n
NkQ/5sIaNKpRGxCnyhzW8lT0tUoGpEHeL06NjFLWG\
"[truncated 210688 bytes];
line: 1, column: 154]"
}
i have also added to accept Binary Media in aws api :

and also attaching AWS Rest Console:
and when i send empty data from post man , it does gives 200 (but some other error , that's okey.)
So how can i resolve this 400 error?