Thanks guys for your input.
Whilst developing a Patient Images module I was wondering whether I should try to make it as REST/JSON friendly as possible, hence this thread. But I won't go down that route, I am just extending core's
ImageHandler and using a custom
PatientImageComplexData and that is enough for now and for our needs.
I saw that from core 1.12+
ComplexData holds a mime type member, which is something I needed and that I added to my extending class.
(Q.) Any chance that this could be backported to 1.11.x?
@sunbiz, I came across Apache Tika too and I eventually settled for a quick workaround without using it, and that was enough for our needs.
However when I was working on the content type detection (and mapping to file extensions) I wanted to bring it as a dependency and I was hitting this issue that it was not found on OpenMRS Nexus repo.