如何将图像路径从asp.net应用传递到Silverlight. [英] How to pass image path from asp.net app to silverlight.

查看:59
本文介绍了如何将图像路径从asp.net应用传递到Silverlight.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何将图像路径从asp.net应用传递到silverlight.
我将图像路径作为查询字符串传递给silverlight,在这里我读取了路径,但是我看到silverlight应用程序需要URI路径才能访问图像.但是我需要在控件中显示图像,其中图像参考将以filestream的形式出现.但是文件流不将URI路径作为参考.
我该如何解决?

How to pass image path from asp.net app to silverlight.
I am passing image path as query string to silverlight here i read the path but i see that the silverlight application requires URI path to access the image. However i need to display the image in a control where the image reference will be in form of filestream . Filestream however does not take URI path as reference.
How can i resolve this?

推荐答案

可以在SL 3和4中使用文件流.
看看 [ ^ ](也请查看代码段).
It is possible to use a Filestream in SL 3 and 4.
Have a look at this[^] (take a look at the code snippet too).


这篇关于如何将图像路径从asp.net应用传递到Silverlight.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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