Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: C# WCF Silverlight
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 12:52pm
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 at 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 at 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
0 OriginalGriff 645
1 Maciej Los 225
2 Abhinav S 171
3 Richard Deeming 160
4 Suvendu Shekhar Giri 159
0 Sergey Alexandrovich Kryukov 9,623
1 OriginalGriff 9,095
2 Peter Leow 5,044
3 Kornfeld Eliyahu Peter 3,373
4 Maciej Los 2,581

Advertise | Privacy | Mobile
Web04 | 2.8.150327.1 | Last Updated 22 May 2010
Copyright © CodeProject, 1999-2015
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