FetchXml查询返回Trimmed DocumentBody? [英] FetchXml Query Returns Trimmed DocumentBody?

查看:71
本文介绍了FetchXml查询返回Trimmed DocumentBody?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个带有几个链接实体的FetchXml查询,其中一个是注释实体,以便检索附加图像的base64编码内容。这样我们就可以使用数据uris在页面上内嵌显示图像。

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.

问题是图像显示被修剪,因为返回的文档实际上被截断为2,000个字符。

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

推荐答案

问题最终成为查询本身的问题。我们在获取查询上设置了 distinct =true,删除此属性然后导致结果包含图像的整个文档体。很奇怪。

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.

这篇关于FetchXml查询返回Trimmed DocumentBody?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆