You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to attach an image to a concept.In OpenMrs , there is something called Complex Obs where we can attach image or whatever file we need.We can create a concept which is of complex type and can attach an image to it.
I was able to do this online within the OpenMRS webapp , the response would generate a URI with which I would be able to download the data.When I try it with REST , it does not seem to work.No error is being generated and it also gives a URI with which I can download, but when I try to download it , it gives me data which is 0 bytes.The OpenMRS seems to provide this facility as can be observed in their test cases as in the link below. https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java
Not sure if the pbm is with the version I am using.Tried sending data as both byte 64 code of file present in the value field and also as a form data.Need to analyse this further.
The text was updated successfully, but these errors were encountered:
Got a reply from openmrs talk.Was asked to attach both file and json body in binary in postman to test.But that option is not available in binary.Only files can be attached no way to attach json body.I have put question back to them.Awaiting for response.
Trying to attach an image to a concept.In OpenMrs , there is something called Complex Obs where we can attach image or whatever file we need.We can create a concept which is of complex type and can attach an image to it.
I was able to do this online within the OpenMRS webapp , the response would generate a URI with which I would be able to download the data.When I try it with REST , it does not seem to work.No error is being generated and it also gives a URI with which I can download, but when I try to download it , it gives me data which is 0 bytes.The OpenMRS seems to provide this facility as can be observed in their test cases as in the link below.
https://github.com/openmrs/openmrs-module-webservices.rest/blob/master/omod-1.9/src/test/java/org/openmrs/module/webservices/rest/web/v1_0/controller/openmrs1_9/ObsController1_9Test.java
Not sure if the pbm is with the version I am using.Tried sending data as both byte 64 code of file present in the value field and also as a form data.Need to analyse this further.
The text was updated successfully, but these errors were encountered: