Click here to Skip to main content
Rate this: bad
good
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
Techbee501
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

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

Solution 2

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.
  Permalink  
Comments
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 325
1 Sergey Alexandrovich Kryukov 289
2 CPallini 275
3 DamithSL 260
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,422
2 Maciej Los 3,860
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,010


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 22 May 2010
Copyright © CodeProject, 1999-2014
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