Click here to Skip to main content
13,050,358 members (140,790 online)
Rate this:
Please Sign up or sign in to vote.
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 21-May-10 11:52am
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Here is a good sample that you help you start your project.
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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2


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.
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.

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 22 May 2010
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100