Click here to Skip to main content
15,885,546 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
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?
Posted
Updated 23-Feb-11 16:57pm
v2
Comments
TweakBird 23-Feb-11 22:57pm    
Removed unnecessary <pre> tag.

1 solution

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).
 
Share this answer
 
Comments
coderaug 23-Feb-11 23:20pm    
in case of silver light application we can access the image and then create a file stream for it. In our scenario, the image path is fetched from the database by the asp.net application the same is then passed to the silver light viewer. But If i do not convert the image path to URI then i get error that the path cannot be accessed. If i convert the path to URI i am not able to pass it as an reference to file stream.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900