We have a FetchXml query with a couple of link entities, one of which is to the annotation entity in order to retrieve an attached image\'s base64 encoded conte
The problem ended up being an issue with the query itself. We had distinct="true" set on the fetch query, removing this attribute then caused the result to contain the entire documentbody of the image. Very strange.