如何将图像路径从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).