Currently, the gateway expects an encoded JSON file with the data attribute holding the raw JSON details, this requires that the json is posted to HAPI when encoded already into base64 file, gateway then hits the resource URI to get the encoded json and use it to decode then read the appid.
The android client on the other hand accesses the binary files using the endpoint /Binary to get all the binaries it requires from the server, the challenge comes when the binary is posted as an encoded json the HAPI (v7.2.0) re-encodes it again when access using the /Binary endpoint as opposed to individual resource URI, this means that for the android client to get a singly encoded json we must post non-encoded json.
This issue is to make gateway read the raw json file it gets so as not to throw this error below;
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "processing", "diagnostics": "HAPI-1359: Failed to parse response from server when performing GET to URL
Currently, the gateway expects an encoded JSON file with the data attribute holding the raw JSON details, this requires that the json is posted to HAPI when encoded already into base64 file, gateway then hits the resource URI to get the encoded json and use it to decode then read the
appid.The android client on the other hand accesses the binary files using the endpoint
/Binaryto get all the binaries it requires from the server, the challenge comes when the binary is posted as an encoded json the HAPI (v7.2.0) re-encodes it again when access using the/Binaryendpoint as opposed to individual resource URI, this means that for the android client to get a singly encoded json we must post non-encoded json.This issue is to make gateway read the raw json file it gets so as not to throw this error below;
{ "resourceType": "OperationOutcome", "issue": [ { "severity": "error", "code": "processing", "diagnostics": "HAPI-1359: Failed to parse response from server when performing GET to URL