The post you've mentioned might be a bit older, but it is still valid. You have several ways to store binary data, depending on the capabilities of your system.
You could store the base64 encoded data in the Patient.photo.data
field.
You could also store the data somewhere else and then point to it with the Patient.photo.url
field. So for example you store the photo on your [base]/Binary
, which will give you the technical id for it. Then set Patient.photo.url to [base]/Binary/[id]
. The advantage of this approach is that you can retrieve the normal patient data without the payload of the image. Disadvantage is that you might need a separate call to retrieve the image.