Click here to Skip to main content
15,886,091 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys

I am new to silverlight. I am looking for a tutorial that can show me how to consume images from WCF service using Silverlight.
What I am hoping to achieve is:
Have a WCF that accesses a database and possibly handle some getImage methods.
I would want a Silverlight based client to call the methods and expose the images.

I hope this can be achieved.

Many thanks
Posted

Hi,

What are you storing in your database? Is it image location (means complete path) or the image as a stream?

If it is the image path, then send the path as a string to your client and then assign it to the Image Source or use WebClient to download the image and set it to the image source.

If you are directly storing the image into your database, then retrieve it as a Stream and assign to your image.


Let me know, if any issues.
 
Share this answer
 
Comments
Techbee 30-May-10 23:01pm    
Thanks for your response, I would like to retrieve the Images as a Stream since they are accessed through WCF Service. Would you have an idea on how this can be accomplished. Thanks.
Here is a good sample that you help you start your project.
 
Share this answer
 
Comments
Techbee 30-May-10 23:02pm    
Thank you very much for the link. It has given me an idea of how to go about this.

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