是否可以对 ria 服务返回的数据进行类型/数据转换?

发布于 2024-09-02 08:15:05 字数 325 浏览 2 评论 0原文

我的服务返回一个字节数组,我必须将其转换为“动画 gif”(自 silverlight 以来使用 imagetools还不支持)

我想知道,是否可以在客户端插入一些代码,我可以在实际对象返回到它所绑定的任何对象之前进行转换?

在服务器端,可以在通过网络发送查询之前对其进行自定义。我要求的恰恰相反,我可以在它们接到电线时和返回到控件之前进行一些即时转换吗?

如果我想得太多并且有一种更聪明/更好/更简单的方法来做到这一点,我也完全赞成这样的答案

My service returns an byte array, which I have to convert to an 'animated gif' (using imagetools since silverlight doesn't support it yet)

I was wondering, is it possible to insert some code at the client, where I can do the conversion before the actual object is returned to whatever it is binded against?

On the server side, the queries can be customized before it is sent over the wire. I'm asking for the exact opposite, can I do some on the fly conversions the moment they get of the wire and before they are returned to the controls.

If I'm overthinking this and there is a smarter/better/easier way to do it, I'm all for such an answer as well

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

羁绊已千年 2024-09-09 08:15:05

我找到了一个在绑定过程中进行转换的解决方案:使用 RIA 服务从 SQL Server 检索和保存图像

I found a solution where the conversion happens during the binding process:Retreiving and saving images from SQL server using RIA services

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文