FetchXml Query Returns Trimmed DocumentBody?

|▌冷眼眸甩不掉的悲伤 提交于 2019-11-28 08:57:29

问题


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:


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.



来源:https://stackoverflow.com/questions/16719349/fetchxml-query-returns-trimmed-documentbody

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!