FetchXml Query Returns Trimmed DocumentBody?

2020-02-14 07:53发布

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 content. This is so we can display an image inline on a page using data uris.

The problem is that the image displays trimmed because the documentbody returned is actually cut off at 2,000 characters.

1条回答
beautiful°
2楼-- · 2020-02-14 08:23

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.

查看更多
登录 后发表回答