W
Wave Kasipat
Guest
I used getBinaryData to get file binary from first tenant then used setBinaryData to second tenant (Java Rest webservice). I can do this method with PDF 300dpi file size 773 KB, But I cannot do with PDF 600dpi file size 1.43 MB (same document). There is no error and I got status response okay from setBinaryData but no file was created in second tenant. Part of my code. uri = UriBuilder.fromUri(readConfig.getRBServUrl()) .path("getBinaryData") .queryParam("sessionId", loginCoop.getSessionId()) .queryParam("output", "json") .queryParam("objName", "ATM_ApfC") .queryParam("id", apfCId) .queryParam("fieldName", "ATM_ApfC_AppFile") .build(); target = client.target(uri); response = target.request().get(); responseString = response.readEntity(String.class); retObject = new JSONObject(responseString); Form form = new Form(); form.param("contentType", retObject.getString("contentType")); form.param("fileName", retObject.getString("fileName")); form.param("value", retObject.getString("fileData")); uri = UriBuilder.fromUri(readConfig.getRBServUrl()) .path("setBinaryData") .queryParam("sessionId", loginFSCT.getSessionId()) .queryParam("output", "json") .queryParam("objName", "ATM_ApfP") .queryParam("id", apfPId) .queryParam("fieldName", "ATM_ApfP_AppFile") .build(); target = client.target(uri); response = target.request().post(Entity.entity(form, MediaType.APPLICATION_FORM_URLENCODED_TYPE)); I suspect that a binary may reach limit when send request, or there is a limit that I can set in rollbase?
Continue reading...
Continue reading...